﻿<%@ Register TagPrefix="WpNs0" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Page language="C#" MasterPageFile="~masterurl/custom.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document"  %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SEARCHWC" Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral runat="server" text="<%$Resources:Microsoft.Office.Server.Search, SearchCenterLiteOnet_Title%>" EncodeMethod='HtmlEncode'/> 
	: <SEARCHWC:SearchTermFromUrl runat="server"/>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
	<IMG SRC="blank.gif" width=1 height=1 alt=""></asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<label><asp:literal runat="server" Text="<%$Resources:Microsoft.Office.Server.Search, Search_Results_Page_Title1%>" /></label>
</ContentTemplate>
</SharePoint:UIVersionedContent>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<style>
body{
background-color:transparent;
}

TD.ms-titleareaframe, .ms-pagetitleareaframe {
    height: 10px; 
}

Div.ms-titleareaframe {
    height: 100%;
}

.ms-pagetitleareaframe table {
    height: 10px;
}
.ms-PartSpacingVertical
{
    margin-top:1px;
}
.srchctr_mainleftcell{
    padding-left: 100px;
}
</style>
</ContentTemplate>
</SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="3" runat="server">
<ContentTemplate>
<style>
TD.ms-titleareaframe, .ms-pagetitleareaframe {
    height: 10px; 
}

Div.ms-titleareaframe {
    height: 100%;
}

.ms-pagetitleareaframe table {
    height: 10px;
}
.ms-PartSpacingVertical
{
    margin-top:1px;
}
</style>
</ContentTemplate>
</SharePoint:UIVersionedContent>
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<style type="text/css">
TD.ms-titleareaframe, Div.ms-titleareaframe, .ms-pagetitleareaframe {
    height: 85px;
    text-align:center; 
}
.ms-pagetitleareaframe table {
    background-position:400px 14px;
    height: 0px;
}
.ms-bodyareaframe {
	PADDING-RIGHT: 0px; PADDING-LEFT: 18px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
</style>  
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderLeftNavBar" runat="server">
<div height=100% class="ms-pagemargin">
	<IMG SRC="blank.gif" width=8 height=1 alt=""></div>
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
<div height=100% class="ms-pagemargin">
	<IMG SRC="blank.gif" width=6 height=1 alt=""></div>
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderTitleLeftBorder"  runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderSearchArea"  runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderTitleBreadcrumb"  runat="server">
<SharePoint:UIVersionedContent UIVersion="3" runat="server">
<ContentTemplate>
<A name="mainContent"></A>
<div style="height:100%; width:100%;padding-left: 2px; padding-top: 16px; padding-bottom: 14px;">
<div style="width:390px;">
</ContentTemplate>
</SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<div class="srch-sb-results">
<div class="srch-sb-results2">
</ContentTemplate>
</SharePoint:UIVersionedContent>
<WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search, LayoutPageZone_TopZone%>" id="TopZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>

<SEARCHWC:SearchSummaryWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{A092D8A6-B1D3-4084-A16B-BB8A78A8F307}" >
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>Search Summary</Title>
  <FrameType>None</FrameType>
  <Description>Displays suggestions for current search query.</Description>
  <IsIncluded>true</IsIncluded>
  <ZoneID>TopZone</ZoneID>
  <PartOrder>2</PartOrder>
  <FrameState>Normal</FrameState>
  <Height />
  <Width />
  <AllowRemove>true</AllowRemove>
  <AllowZoneChange>true</AllowZoneChange>
  <AllowMinimize>true</AllowMinimize>
  <AllowConnect>false</AllowConnect>
  <AllowEdit>true</AllowEdit>
  <AllowHide>true</AllowHide>
  <IsVisible>true</IsVisible>
  <DetailLink />
  <HelpLink />
  <HelpMode>Modeless</HelpMode>
  <Dir>Default</Dir>
  <PartImageSmall />
  <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
  <PartImageLarge />
  <IsIncludedFilter />
  <ExportControlledProperties>true</ExportControlledProperties>
  <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
  <ID>g_a092d8a6_b1d3_4084_a16b_bb8a78a8f307</ID>
  <ShowMessages xmlns="urn:schemas-microsoft-com:SearchSummaryWebPart">false</ShowMessages>
  <QueryID xmlns="urn:schemas-microsoft-com:SearchSummaryWebPart">Query1</QueryID>
</WebPart>
</SEARCHWC:SearchSummaryWebPart>
</ZoneTemplate></WebPartPages:WebPartZone> 
</div>
</div>
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderTitleAreaSeparator"  runat="server">
</asp:Content>

<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">

<div class="s4-lp s4-toplinks">
			<SharePoint:AspMenu ID="TopNavigationMenuV4" Runat="server" EnableViewState="false"
				DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>"
				UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="2"
				MaximumDynamicDisplayLevels="1" SkipLinkText="" CssClass="s4-tn"/>
			<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
				<template_controls>
					<asp:SiteMapDataSource
						ShowStartingNode="False"
						SiteMapProvider="SPNavigationProvider"
						id="topSiteMap"
						runat="server"
						StartingNodeUrl="sid:1002"/>
				</template_controls>
			</SharePoint:DelegateControl>
</div>


<table border="0" cellpadding="0" cellspacing="0" width="100%">
<SharePoint:VersionedPlaceHolder UIVersion="4" runat="server">
    <tr> 
         <td colspan="3">
              <div style="border-color:#b6babf; border-style:solid; border-width:0px 0px 1px; height:1px; width:100%;" />
         </td>
    </tr>
    <tr>
         <td class="srchctr_leftcell" id="LeftCell">
            <div class="srch-refinearea">
              <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" FrameType="TitleBarOnly" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_LeftZone%>" id="LeftZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>
				<SEARCHWC:RefinementWebPart runat="server" Description="This webpart helps the users to refine search results" ListDisplayName="" QueryNumber="Query1" PartOrder="2" HelpLink="" AllowRemove="True" PartImageSmall="" IsVisible="False" UseDefaultConfiguration="True" AllowHide="True" Hidden="True" UseSQLDataSourcePaging="True" ExportControlledProperties="True" DataSourceID="" Title="Refinement Panel" ViewFlag="0" NoDefaultStyle="" AccuracyIndex="50" IsIncluded="True" FrameState="Normal" PageSize="-1" PartImageLarge="" AsyncRefresh="False" ExportMode="All" Dir="Default" DetailLink="" ShowWithSampleData="False" ListId="00000000-0000-0000-0000-000000000000" FilterCategoriesDefinition="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;FilterCategories&gt;

  &lt;Category
    Title=&quot;Result Type&quot;
    Description=&quot;The file extension of the item&quot;
    Type=&quot;Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator&quot;
    MetadataThreshold=&quot;5&quot;
    NumberOfFiltersToDisplay=&quot;4&quot;
    MaxNumberOfFilters=&quot;0&quot;
    SortBy=&quot;Frequency&quot;
    SortDirection=&quot;Descending&quot;
    SortByForMoreFilters=&quot;Name&quot;
    SortDirectionForMoreFilters=&quot;Ascending&quot; 
    ShowMoreLink=&quot;True&quot;
    MappedProperty=&quot;FileExtension&quot;
    MoreLinkText=&quot;show more&quot;
    LessLinkText=&quot;show fewer&quot;&gt;
    &lt;CustomFilters MappingType=&quot;ValueMapping&quot; DataType=&quot;String&quot; ValueReference=&quot;Absolute&quot; ShowAllInMore=&quot;False&quot;&gt;
      &lt;CustomFilter CustomValue=&quot;Adobe PDF&quot;&gt;
        &lt;OriginalValue&gt;pdf&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Email&quot;&gt;
        &lt;OriginalValue&gt;eml&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;msg&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;exch&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Excel&quot;&gt;
        &lt;OriginalValue&gt;odc&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;ods&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;xls&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;xlsb&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;xlsm&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;xlsx&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Image&quot;&gt;
        &lt;OriginalValue&gt;tif&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;tiff&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Lotus Notes&quot;&gt;
        &lt;OriginalValue&gt;nsf&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;OneNote&quot;&gt;
        &lt;OriginalValue&gt;one&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;PowerPoint&quot;&gt;
        &lt;OriginalValue&gt;odp&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;ppt&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;pptm&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;pptx&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Publisher&quot;&gt;
        &lt;OriginalValue&gt;pub&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Text&quot;&gt;
        &lt;OriginalValue&gt;odt&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;txt&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;url&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;csv&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Visio&quot;&gt;
        &lt;OriginalValue&gt;vdw&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vdx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vsd&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vss&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vst&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vsx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;vtx&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Webpage&quot;&gt;
        &lt;OriginalValue&gt;ascx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;asp&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;aspx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;htm&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;html&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;jhtml&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;js&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;mht&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;mhtml&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;mspx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;php&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;XML&quot;&gt;
        &lt;OriginalValue&gt;xml&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Word&quot;&gt;
        &lt;OriginalValue&gt;doc&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;docm&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;docx&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;dot&lt;/OriginalValue&gt;
        &lt;OriginalValue&gt;nws&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Zip&quot;&gt;
        &lt;OriginalValue&gt;zip&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
    &lt;/CustomFilters&gt;
  &lt;/Category&gt;

  &lt;Category
    Title=&quot;Site&quot;
    Description=&quot;Which site this document is from&quot;
    Type=&quot;Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator&quot;
    MetadataThreshold=&quot;5&quot;
    NumberOfFiltersToDisplay=&quot;4&quot;
    MaxNumberOfFilters=&quot;20&quot;
    SortBy=&quot;Frequency&quot;
    SortByForMoreFilters=&quot;Name&quot;
    SortDirection=&quot;Descending&quot;
    SortDirectionForMoreFilters=&quot;Ascending&quot;
    ShowMoreLink=&quot;True&quot;
    MappedProperty=&quot;SiteName&quot;
    MoreLinkText=&quot;show more&quot;
    LessLinkText=&quot;show fewer&quot; /&gt;

  &lt;Category
    Title=&quot;Author&quot;
    Description=&quot;Use this filter to restrict results authored by a specific author&quot;
    Type=&quot;Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator&quot;
    MetadataThreshold=&quot;5&quot;
    NumberOfFiltersToDisplay=&quot;4&quot;
    MaxNumberOfFilters=&quot;20&quot;
    SortBy=&quot;Frequency&quot;
    SortByForMoreFilters=&quot;Name&quot;
    SortDirection=&quot;Descending&quot;
    SortDirectionForMoreFilters=&quot;Ascending&quot;
    ShowMoreLink=&quot;True&quot;
    MappedProperty=&quot;Author&quot;
    MoreLinkText=&quot;show more&quot;
    LessLinkText=&quot;show fewer&quot;
    /&gt;

  &lt;Category
    Title=&quot;Modified Date&quot;
    Description=&quot;When the item was last updated&quot;
    Type=&quot;Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator&quot;
    MetadataThreshold=&quot;5&quot;
    NumberOfFiltersToDisplay=&quot;6&quot;
    MaxNumberOfFilters=&quot;0&quot;
    SortBy=&quot;Custom&quot;
    ShowMoreLink=&quot;True&quot;
    MappedProperty=&quot;Write&quot;
    MoreLinkText=&quot;show more&quot;
    LessLinkText=&quot;show fewer&quot; &gt;
    &lt;CustomFilters MappingType=&quot;RangeMapping&quot; DataType=&quot;Date&quot; ValueReference=&quot;Relative&quot; ShowAllInMore=&quot;False&quot;&gt;
      &lt;CustomFilter CustomValue=&quot;Past 24 Hours&quot;&gt;
        &lt;OriginalValue&gt;-1..&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Past Week&quot;&gt;
        &lt;OriginalValue&gt;-7..&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Past Month&quot;&gt;
        &lt;OriginalValue&gt;-30..&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Past Six Months&quot;&gt;
        &lt;OriginalValue&gt;-183..&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Past Year&quot;&gt;
        &lt;OriginalValue&gt;-365..&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
      &lt;CustomFilter CustomValue=&quot;Earlier&quot;&gt;
        &lt;OriginalValue&gt;..-365&lt;/OriginalValue&gt;
      &lt;/CustomFilter&gt;
    &lt;/CustomFilters&gt;
  &lt;/Category&gt;

&lt;/FilterCategories&gt;
" FrameType="None" ShowMessages="False" DisplayedCategories="6" SuppressWebPartChrome="False" AllowEdit="True" NumberOfCharsToDisplay="19" ManualRefresh="False" ChromeType="None" AutoRefresh="False" AutoRefreshInterval="60" AllowConnect="False" AllowMinimize="True" ViewContentTypeId="" InitialAsyncDataFetch="False" MissingAssembly="Cannot import this Web Part." HelpMode="Modeless" ListUrl="" ID="g_2abad4cd_3932_49bb_8f0b_ef81b8ea2776" ConnectionID="00000000-0000-0000-0000-000000000000" AllowZoneChange="True" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{BE9A3A47-19D5-4247-8257-12BB9C4BB7B8}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><ParameterBindings>
			  </ParameterBindings>
<DataFields>
</DataFields>
<SampleData>
<FilterPanel>
  <FilterCategory Id="Microsoft_Office_Server_Search_WebControls_ManagedPropertyFilterGenerator__-357320691" Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator" DisplayName="Result Type" ManagedProperty="FileExtension" ShowMoreLink="True" FreeFormFilterHint="" MoreLinkText="show more" LessLinkText="show fewer">
    <Filters>
      <Filter>
        <Value>Any Result Type</Value>
        <Tooltip>Any Result Type</Tooltip>
        <Url>#</Url>
        <Selection>Implied</Selection>
        <Count></Count>
        <Percentage></Percentage>
      </Filter>
      <Filter>
        <Value>Webpages</Value>
        <Tooltip>Webpages</Tooltip>
        <Url>#</Url>
        <Selection>Deselected</Selection>
        <Count>33</Count>
        <Percentage></Percentage>
      </Filter>
    <Filter>
      <Value>Documents</Value>
      <Tooltip>Webpages</Tooltip>
      <Url>#</Url>
      <Selection>Deselected</Selection>
      <Count>33</Count>
      <Percentage></Percentage>
    </Filter>
    </Filters>
  </FilterCategory>
</FilterPanel></SampleData>
<Xsl>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">
  <xsl:output method="xml" indent="no"/>
  <xsl:param name="RefinementPanelCaption"></xsl:param>
  <xsl:param name="QueryId"></xsl:param>
  <xsl:param name="TagsCategoryId"></xsl:param>
  <xsl:param name="MetadataServiceUrl"></xsl:param>
  <xsl:param name="IsUIRightToLeft"></xsl:param>
  <xsl:param name="ApplyButtonText"></xsl:param>
  <xsl:param name="CancelButtonText"></xsl:param>
  <xsl:param name="CurrentLcid"></xsl:param>
  <xsl:param name="MoreLinkPanelIDSuffix"></xsl:param>
  <xsl:param name="IdPrefix" />
  <xsl:param name="IsDesignMode">True</xsl:param>
  <xsl:param name="RefineByHeading">Refinement</xsl:param>
  <xsl:param name="IsRTL">False</xsl:param>

  <xsl:template match="FilterPanel" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">
    <xsl:variable name="FilterCategories" select="FilterCategory" />
    <xsl:variable name="CategoryCount" select="count($FilterCategories)" />
    <xsl:if test="($CategoryCount &gt; 0)">
      <xsl:call-template name="FilterCategory">
        <xsl:with-param name="Categories" select="$FilterCategories" />
      </xsl:call-template>
    </xsl:if>
  </xsl:template>

  

  <xsl:template name="FilterCategory">
    <xsl:param name="Categories" />
    <xsl:if test="$RefinementPanelCaption != ''">
      <div class="ms-searchref-caption">
        <xsl:value-of select="$RefinementPanelCaption" />
      </div>
    </xsl:if>
    <xsl:for-each select="$Categories">
      <xsl:variable name="FilterCategoryId" select="concat(@Id,$IdPrefix)"/> 
      <xsl:variable name="TagsId" select="concat($TagsCategoryId,$IdPrefix)"/> 
      <xsl:variable name="ColumnId" select="substring(@Id,10)"/> 
      <xsl:variable name="FilterCategoryType" select="@Type"/> 
      <xsl:variable name="ManagedProperty" select="@ManagedProperty"/>
      <xsl:variable name="SSPList" select="substring-before(CustomData/AssociateTermSets, '|')"/>
      <xsl:variable name="TermSetList" select="substring-after(CustomData/AssociateTermSets, '|')"/>
      <xsl:variable name="ShowMoreLink" select="translate(@ShowMoreLink,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> 
      <xsl:variable name="FreeFormFilterHint" select="@FreeFormFilterHint"/> 
      <xsl:variable name="MoreLinkText" select="@MoreLinkText"/> 
      <xsl:variable name="LessLinkText" select="@LessLinkText"/> 
      <xsl:variable name="ShowCounts" select="@ShowCounts"/> 
      <xsl:variable name="DisplayName" select="@DisplayName"/>   
      <xsl:variable name="EscapedDisplayName" select="CustomData/EscapedDisplayName"/>   
      <xsl:variable name="ShowTaggingControl" select="@ShowTaggingControl"/>   
      <div class="ms-searchref-categoryname">
        <xsl:value-of select="$DisplayName"/>
      </div>
      <ul class="ms-searchref-filters" id="TopFilters_{$FilterCategoryId}">
        <xsl:choose>
          	<xsl:when test="$FilterCategoryType = 'Message'">
            	<xsl:for-each select="Filters/Filter">
              		<xsl:call-template name="FilterMessage">
                		<xsl:with-param name="Value" select="Value" />
              		</xsl:call-template>
            </xsl:for-each>
          </xsl:when>
          	<xsl:otherwise>
            	<xsl:call-template name="Filter">
              		<xsl:with-param name="Filters" select="Filters/Filter" />
              		<xsl:with-param name="ShowCounts" select="$ShowCounts" />
            	</xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </ul>
        <xsl:if test="$ShowMoreLink='TRUE'">
          	<xsl:variable name="MoreFilters" select="MoreFilters/Filter" />
          	<xsl:choose>
            	<xsl:when test="$FilterCategoryId and ($FilterCategoryId != '') and ($FilterCategoryType = 'Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator')">
              		<xsl:variable name="MoreDivId" select="concat('RefinementMore_', $QueryId, $FilterCategoryId)" />
              		<xsl:variable name="LessDivId" select="concat('RefinementLess_', $QueryId, $FilterCategoryId)" />
              		<xsl:if test="$MoreFilters != ''">
                <a class="ms-searchref-more" href="javascript:{{}}" onclick="SearchEnsureSOD();ToggleRefMoreLessFilters(this, true);">
                  <div class="ms-searchref-morelink">
                    <xsl:value-of select="$MoreLinkText" />
                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
                    <img src="/_layouts/images/more_arrow.png" class="ms-searchref-moreicon" />
                  </div>
                </a>
                <ul class="ms-searchref-filters" id="MoreFilters_{$FilterCategoryId}" style="display:none">
                  	<xsl:call-template name="Filter">
                    	<xsl:with-param name="Filters" select="$MoreFilters" />
                    	<xsl:with-param name="ShowCounts" select="$ShowCounts" />
                  	</xsl:call-template>
                </ul>
                <a class="ms-searchref-more" href="javascript:{{}}" onclick="SearchEnsureSOD();ToggleRefMoreLessFilters(this, false);" style="display:none">
                  <div class="ms-searchref-morelink">
                    <xsl:value-of select="$LessLinkText" />
                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
                    <img src="/_layouts/images/less_arrow.png" class="ms-searchref-moreicon" />
                  </div>
                </a>
              </xsl:if>
            </xsl:when>
            	<xsl:when test="$FilterCategoryId and ($FilterCategoryId != '') and ($FilterCategoryType = 'Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator')">
              		<xsl:variable name="IsTagsColumn" select="$FilterCategoryId = $TagsId" />
              		<xsl:if test="$MoreFilters != ''">
                <a id="{$MoreLinkPanelIDSuffix}_{$FilterCategoryId}" href="javascript:{{}}" class="ms-searchref-more" onclick="SearchEnsureSOD();RenderTaggingControl('{$FilterCategoryId}', {$IsTagsColumn}, '{$SSPList}', '{$TermSetList}', '{$MetadataServiceUrl}', {$CurrentLcid}, '{$MoreLinkPanelIDSuffix}', '{$EscapedDisplayName}', {$ShowTaggingControl}, {$IsUIRightToLeft});">
                  <div class="ms-searchref-morelink">
                    <xsl:value-of select="$MoreLinkText" />
                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
                    <img src="/_layouts/images/more_arrow.png" class="ms-searchref-moreicon" />
                  </div>
                </a>
                <div style="display:none">
                  <ul class="ms-searchref-filters" id="MoreFilters_{$FilterCategoryId}">
                    <xsl:call-template name="Filter">
                      	<xsl:with-param name="Filters" select="MoreFilters/Filter" />
                      	<xsl:with-param name="ShowCounts" select="$ShowCounts" />
                    </xsl:call-template>
                  </ul>
                  <div id="TaxonomyMoreControl_{$FilterCategoryId}">
                    <input id="MetadataHiddenInput_{$FilterCategoryId}" type="hidden" />
                    <div id="TaggingControl_{$FilterCategoryId}" class="ms-taxonomy">
                        <img alt="" src="/_layouts/images/blank.gif" height="0" width="0"/>
                    </div>
                    <img style="display:none" src="/_layouts/images/RTE2FIND.gif" class="ms-searchref-taxapply" align="right" alt="{$ApplyButtonText}" onclick="SearchEnsureSOD();var link=GetTaxonomyApplyFilterUrl('{$FilterCategoryId}','{$ColumnId}');if (link!='')window.location=link;" />
                  </div>
                </div>
                <a style="display:none" class="ms-searchref-more" href="javascript:{{}}" onclick="SearchEnsureSOD();ToggleTaxonomyLessFilters(this);">
                  <div class="ms-searchref-morelink">
                    <xsl:value-of select="$LessLinkText" />
                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
                    <img src="/_layouts/images/less_arrow.png" class="ms-searchref-moreicon" />
                  </div>
                </a>
              </xsl:if>
            </xsl:when>
            	<xsl:when test="$FilterCategoryId and ($FilterCategoryId != '') and ($FilterCategoryType = 'Message')">
            </xsl:when>
            	<xsl:otherwise>
            </xsl:otherwise>
          	</xsl:choose>
        </xsl:if>
      <div class="ms-searchref-catseparator">&#160;</div>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="Filter">
    <xsl:param name="Filters" />
    <xsl:param name="ShowCounts" />
    <xsl:for-each select="$Filters">
      <xsl:variable name="Selection" select="Selection" />
      <xsl:choose>
        <xsl:when test="($Selection = 'Selected')">
          	<xsl:call-template name="FilterLink">
            	<xsl:with-param name="Url" select="Url" />
            	<xsl:with-param name="UrlTooltip" select="Tooltip" />
            	<xsl:with-param name="Value" select="Value" />
            	<xsl:with-param name="FilterSelection" select="'ms-searchref-selected ms-searchref-removable'" />
            	<xsl:with-param name="ShowCounts" select="$ShowCounts" />
            	<xsl:with-param name="Count" select="Count" />
            	<xsl:with-param name="Percentage" select="Percentage" />
            	<xsl:with-param name="Indentation" select="Indentation" />
          	</xsl:call-template>
        </xsl:when>
        <xsl:when test="($Selection = 'Implied')">
          	<xsl:call-template name="FilterLink">
            	<xsl:with-param name="Url" select="Url" />
            	<xsl:with-param name="UrlTooltip" select="Tooltip" />
            	<xsl:with-param name="Value" select="Value" />
            	<xsl:with-param name="FilterSelection" select="'ms-searchref-selected'" />
            	<xsl:with-param name="ShowCounts" select="$ShowCounts" />
            	<xsl:with-param name="Count" select="Count" />
            	<xsl:with-param name="Percentage" select="Percentage" />
            	<xsl:with-param name="Indentation" select="Indentation" />
          	</xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          	<xsl:call-template name="FilterLink">
            	<xsl:with-param name="Url" select="Url" />
            	<xsl:with-param name="UrlTooltip" select="Tooltip" />
            	<xsl:with-param name="Value" select="Value" />
            	<xsl:with-param name="FilterSelection" select="'ms-searchref-unselected'" />
            	<xsl:with-param name="ShowCounts" select="$ShowCounts" />
            	<xsl:with-param name="Count" select="Count" />
            	<xsl:with-param name="Percentage" select="Percentage" />
            	<xsl:with-param name="Indentation" select="Indentation" />
          	</xsl:call-template>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:for-each>
  </xsl:template>

  <xsl:template name="FilterLink">
    <xsl:param name="Url"/>
    <xsl:param name="UrlTooltip"/>
    <xsl:param name="Value"/>
    <xsl:param name="FilterSelection"/>
    <xsl:param name="ShowCounts"/>
    <xsl:param name="Count"/>
    <xsl:param name="Percentage"/>
    <xsl:param name="Indentation"/>
    <xsl:variable name="SecureUrl">
      <xsl:call-template name="GetSecureUrl">
        <xsl:with-param name="Url" select="$Url" />
      </xsl:call-template>
    </xsl:variable>
    <li class="ms-searchref-filter {$FilterSelection}">
      <xsl:if test="($Indentation = '1')">
        <span class="ms-searchref-indenticon">↳&#160;</span>
      </xsl:if>
      <a class="ms-searchref-filterlink" href="{$SecureUrl}" title="{$RefineByHeading}: {$UrlTooltip}">
        <xsl:value-of select="Value"/>
      </a>
      <xsl:choose>
        <xsl:when test="($ShowCounts = 'Count') and ($Count != '')">
          <span class="ms-searchref-count">
            <xsl:if test="$IsRTL = 'True'">‏</xsl:if> 
            (<xsl:value-of select="Count"/>)
          </span>
        </xsl:when>
        <xsl:when test="($ShowCounts = 'Percentage') and ($Percentage != '')">
          <span class="ms-searchref-count">
            <xsl:if test="$IsRTL = 'True'">‏</xsl:if> 
            (<xsl:value-of select="format-number($Percentage, '0%')"/>)
          </span>
        </xsl:when>
      </xsl:choose>
    </li>
  </xsl:template>

  <xsl:template name="FilterMessage">
    <xsl:param name="Value"/>
    <xsl:param name="FilterSelection"/>
    <li class="ms-searchref-filtermsg">
      <span class="ms-searchref-filterlink ms-searchref-msg">
        <xsl:value-of select="Value"/>
      </span>
    </li>
  </xsl:template>

  <xsl:template name="GetSecureUrl">
    <xsl:param name="Url"/>
    <xsl:choose>
      <xsl:when test="$IsDesignMode = 'True'">
        <xsl:value-of select="$Url" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="ddwrt:EnsureAllowedProtocol($Url)" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

</xsl:stylesheet>
</Xsl>
</SEARCHWC:RefinementWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>
            </div> 
         </td>		   
		 <td class="srchctr_mainleftcell" id="MainLeftCell" rowspan="2">
		     <div>
                     <span class="srch-maintopleft">   
</SharePoint:VersionedPlaceHolder>
           <SharePoint:UIVersionedContent UIVersion="3" runat="server">
           <ContentTemplate> 
              <tr>
               <td id="MainLeftCell" width="75%" valign="top">
                <table border="0" cellpadding="0" cellspacing="0" ID="LeftZoneTable" width="100%" class="ms-tztable">
				<tbody>
				<tr width="100%">                      
                    <td width="100%">
                             <table width="100%" cellspacing="0" width="100%">
                               <tbody>
                               <tr width="100%">
                                   <td id="MidUpperLeftCell" align="left"> 
            </ContentTemplate>
            </SharePoint:UIVersionedContent>
								   <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_MiddleUpperLeftZone%>" id="MidUpperLeftZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>      
                                     </span>
                      <span class="srch-maintopright">
                          <div>
</ContentTemplate>
</SharePoint:UIVersionedContent>
            <SharePoint:UIVersionedContent UIVersion="3" runat="server">
            <ContentTemplate>
                                 </td>
                                 <td id="MidUpperRightCell" align="right">
            </ContentTemplate>
            </SharePoint:UIVersionedContent>
								 <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_MiddleUpperRightZone%>" id="MidUpperRightZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone> 
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate> 
                                       </div>                            
	                           </span>
				</div>
                                <div class="srch-maintop">
                                    <span class="srch-maintopleft">
</ContentTemplate>
</SharePoint:UIVersionedContent>
            <SharePoint:UIVersionedContent UIVersion="3" runat="server">
            <ContentTemplate>
                                 </td>
                               </tr>
                             </table>
                    </td>
                </tr>
				 <tr class="ms-srchresultstop" width="100%">
                   <td width="100%">
                    <table width="100%">
				       <tbody>
				       <tr width="100%">                                   
                          <td id="MidLowerLeftCell" colspan="1" align="left">
            </ContentTemplate>
            </SharePoint:UIVersionedContent>
                   <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_MiddleLowerLeftZone%>" id="MidLowerLeftZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>    
			<SharePoint:UIVersionedContent UIVersion="3" runat="server">
	                <ContentTemplate>                        
	                      </td>
						  <td id="MidLowerRightCell" colspan="1" align="right">  

			</ContentTemplate>
			</SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>      
                                     </span>
                                     <span class="srch-maintopright">
</ContentTemplate>
</SharePoint:UIVersionedContent>
	     <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_MiddleLowerRightZone%>" id="MidLowerRightZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>
			<SEARCHWC:CoreResultsWebPart runat="server" HighestResultPage="1000" NoDefaultStyle="" MoreLinkLabel="View more results &#187;" QuerySideLanguage="" DisplayDiscoveredDefinition="True" SharedPropertiesVersion="4" ConcurrentNumberDocumentPreview="10" FrameType="None" InitialAsyncDataFetch="False" DateView="False" Scope="" UseSQLDataSourcePaging="True" ListId="00000000-0000-0000-0000-000000000000" TotalNumberDocumentPreview="10" EnableStemming="False" ShowMessages="False" FixedQuery="" DisplayRSSLink="True" EnablePhonetic="False" PropertiesToRetrieve="
&lt;Columns&gt;
  &lt;Column Name=&quot;WorkId&quot;/&gt;
  &lt;Column Name=&quot;Rank&quot;/&gt;
  &lt;Column Name=&quot;Title&quot;/&gt;
  &lt;Column Name=&quot;Author&quot;/&gt;
  &lt;Column Name=&quot;Size&quot;/&gt;
  &lt;Column Name=&quot;Path&quot;/&gt;
  &lt;Column Name=&quot;Description&quot;/&gt;
  &lt;Column Name=&quot;Write&quot;/&gt;
  &lt;Column Name=&quot;SiteName&quot;/&gt;
  &lt;Column Name=&quot;CollapsingStatus&quot;/&gt;
  &lt;Column Name=&quot;HitHighlightedSummary&quot;/&gt;
  &lt;Column Name=&quot;HitHighlightedProperties&quot;/&gt;
  &lt;Column Name=&quot;ContentClass&quot;/&gt;
  &lt;Column Name=&quot;IsDocument&quot;/&gt;
  &lt;Column Name=&quot;PictureThumbnailURL&quot;/&gt;
  &lt;Column Name=&quot;PopularSocialTags&quot;/&gt;
  &lt;Column Name=&quot;PictureWidth&quot;/&gt;
  &lt;Column Name=&quot;PictureHeight&quot;/&gt;
  &lt;Column Name=&quot;DatePictureTaken&quot;/&gt;
  &lt;Column Name=&quot;ServerRedirectedURL&quot;/&gt;
  
&lt;/Columns&gt;
" MissingAssembly="Cannot import this Web Part." ViewContentTypeId="" ID="g_bb1b97af_f5f2_4a27_831d_208d3d8ddaa0" SpellcheckingMode="Suggest" AllowHide="True" RelevanceView="False" EnableDocumentPreviewWord="True" DateFormat="DateOnly" AutoRefreshInterval="60" ListUrl="" ViewFlag="0" AllowEdit="True" ExportMode="All" AllowRemove="True" ShowWithSampleData="False" MoreResultsText="View more results &#187;" PartImageLarge="" DisplayAlertMeLink="True" PartOrder="2" SentencesInSummary="3" SortXml="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;ResultSorting xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;   &lt;SortableFields&gt;    &lt;SortableField SupportsSortDirection=&quot;false&quot; DefaultSortDirection=&quot;Ascending&quot; IsSS14RankProfile=&quot;false&quot; IsDefault=&quot;true&quot;&gt;      &lt;FieldID&gt;default&lt;/FieldID&gt;      &lt;Display&gt;true&lt;/Display&gt;      &lt;DisplayText&gt;Relevance&lt;/DisplayText&gt;    &lt;/SortableField&gt;    &lt;SortableField SupportsSortDirection=&quot;true&quot; DefaultSortDirection=&quot;Ascending&quot; IsSS14RankProfile=&quot;false&quot; IsDefault=&quot;false&quot; Type=&quot;Datetime&quot;&gt;      &lt;FieldID&gt;write&lt;/FieldID&gt;      &lt;Display&gt;true&lt;/Display&gt;      &lt;DisplayText&gt;Date&lt;/DisplayText&gt;    &lt;/SortableField&gt;  &lt;/SortableFields&gt;&lt;/ResultSorting&gt;" IsIncluded="True" IsVisible="False" AutoRefresh="False" EnableSimilarFind="False" ListDisplayName="" AppendedQuery="" AllowMinimize="True" ConnectionID="00000000-0000-0000-0000-000000000000" ShowWindowsSearch="True" ScopeID="-1" UseLocationVisualization="True" IgnoreNoise="True" FrameState="Normal" IsIncludedFilter="" DataSourceID="" ShowSearchResults="False" SuppressWebPartChrome="False" HelpMode="Modeless" ResubmitFlag="NoResubmit" HelpLink="" PreviewWindowSize="160" CharactersInUrl="90" QueryNumber="Query1" ResultsPerPage="10" AllowConnect="False" AllowZoneChange="True" Location="LocalSearchIndex" CharactersInSummary="185" DefaultSort="Relevance" IsLocationPeople="False" ExportControlledProperties="True" EnableNicknames="False" ShowActionLinks="True" DefaultRankingModelID="" DetailLink="" Dir="Default" Title="Search Action Links" Description="Displays the search action links on the search results page." View="Relevance" Hidden="True" ManualRefresh="False" PartImageSmall="" AsyncRefresh="False" ShowMoreLink="False" EnableDocumentPreviewPowerPoint="True" RemoveDuplicates="True" ShowLangPicker="True" ChromeType="None" PageSize="-1" __MarkupType="vsattributemarkup" __WebPartId="{FADEAD66-B5BD-4406-BA84-56B0FBE8B8FE}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><Xsl>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="xml" indent="no"/>
<xsl:param name="Keyword" />
<xsl:param name="ResultsBy" />
<xsl:param name="ViewByUrl" />
<xsl:param name="ShowDropDown" />
<xsl:param name="ViewByValue" />
<xsl:param name="SortBy" />
<xsl:param name="SortOptions" />
<xsl:param name="Relevancy" />
<xsl:param name="ModifiedDate" />
<xsl:param name="DropDownOption" />
<xsl:param name="Multiply" />
<xsl:param name="PictureTaken" />
<xsl:param name="IsNoKeyword" />
<xsl:param name="IsFixedQuery" />
<xsl:param name="ShowActionLinks" />
<xsl:param name="MoreResultsText" />
<xsl:param name="MoreResultsLink" />
<xsl:param name="CollapsingStatusLink" />
<xsl:param name="CollapseDuplicatesText" />
<xsl:param name="AlertMeLink" />
<xsl:param name="AlertMeText" />
<xsl:param name="SrchRSSText" />
<xsl:param name="SrchRSSLink" />
<xsl:param name="SearchProviderText" />
<xsl:param name="SearchProviderLink" />
<xsl:param name="SearchProviderAlt"/>
<xsl:param name="ShowMessage" />
<xsl:param name="IsThisListScope" />
<xsl:param name="DisplayDiscoveredDefinition" select="True" />
<xsl:param name="NoFixedQuery" />
<xsl:param name="NoKeyword" />
<xsl:param name="ResultsNotFound" />
<xsl:param name="NoResultsSuggestion" />
<xsl:param name="NoResultsSuggestion1" />
<xsl:param name="NoResultsSuggestion2" />
<xsl:param name="NoResultsSuggestion3" />
<xsl:param name="NoResultsSuggestion4" />
<xsl:param name="NoResultsSuggestion5" />
<xsl:param name="AdditionalResources" />
<xsl:param name="AdditionalResources1" />
<xsl:param name="AdditionalResources2" />
<xsl:param name="IsSearchServer" />
<xsl:param name="Period" />
<xsl:param name="SearchHelp" />
<xsl:param name="Tags" />
<xsl:param name="Authors" />
<xsl:param name="Date" />
<xsl:param name="Size" />
<xsl:param name="ViewInBrowser" />
<xsl:param name="DefinitionIntro" />
<xsl:param name="IdPrefix" />
<xsl:param name="LangPickerHeading" />
<xsl:param name="LangPickerNodeSet" />
<xsl:param name="IsDesignMode">True</xsl:param>

<!-- When there is keywory to issue the search -->
<xsl:template name="dvt_1.noKeyword">
  <span class="srch-description2">
  <xsl:choose>
  <xsl:when test="$IsFixedQuery">
      <xsl:value-of select="$NoFixedQuery" />
  </xsl:when>
   <xsl:otherwise>
      <xsl:value-of select="$NoKeyword" />
   </xsl:otherwise>
  </xsl:choose>
  </span>       
</xsl:template>


<!-- When empty result set is returned from search -->
<xsl:template name="dvt_1.empty">
 <div class="srch-results">
  <xsl:if test="$AlertMeLink and $ShowActionLinks">  
    <span class="srch-alertme" > <a href ="{$AlertMeLink}" id="CSR_AM1" title="{$AlertMeText}"><img style="vertical-align: middle;" src="/_layouts/images/bell.gif" alt="" border="0"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$AlertMeText" /></a>
    </span>
  </xsl:if>

  <xsl:if test="string-length($SrchRSSLink) &gt; 0 and $ShowActionLinks">     
   <xsl:if test="$AlertMeLink">  
    |
   </xsl:if>
   <a type="application/rss+xml" href ="{$SrchRSSLink}" title="{$SrchRSSText}" id="SRCHRSSL"><img style="vertical-align: middle;" border="0" src="/_layouts/images/rss.gif" alt=""/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$SrchRSSText"/></a>
   <xsl:if test="string-length($SearchProviderLink) &gt; 0">  
     |  
     <a href ="{$SearchProviderLink}" title="{$SearchProviderText}" ><img style="vertical-align: middle;" border="0" src="/_layouts/images/searchfolder.png" alt=""/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$SearchProviderText"/></a>
   </xsl:if> 
 </xsl:if>
 </div>

  <div class="srch-results" accesskey="W">
  <span class="srch-description2" id="CSR_NO_RESULTS">
   <p>
       <xsl:value-of select="$ResultsNotFound" />
       <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
       <strong><xsl:value-of select="$Keyword" /></strong>
       <xsl:value-of select="$Period" />
   </p>
   <h3>
        <xsl:value-of select="$NoResultsSuggestion" />
   </h3>
   <ul>
        <li><xsl:value-of select="$NoResultsSuggestion1" /></li>
        <li><xsl:value-of select="$NoResultsSuggestion2" /></li>
        <li><xsl:value-of select="$NoResultsSuggestion3" /></li>
        <xsl:if test="string-length($NoResultsSuggestion4) &gt; 0"> 
            <li><xsl:value-of select="$NoResultsSuggestion4" /></li>
        </xsl:if>
        <xsl:if test="string-length($NoResultsSuggestion5) &gt; 0">
            <li><xsl:value-of select="$NoResultsSuggestion5" /></li>
        </xsl:if>
    </ul>
    <h3>
        <xsl:value-of select="$AdditionalResources" />
   </h3>
   <ul>
        <li><xsl:value-of select="$AdditionalResources1" /><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
        <xsl:choose>
          <xsl:when test="string-length($IsSearchServer) &gt; 0">
            <a href="javascript:HelpWindowKey('MSSEndUser_FindContent')" label="$SearchHelp"><xsl:value-of select="$SearchHelp" /></a> 
          </xsl:when>
          <xsl:otherwise>
            <a href="javascript:HelpWindowKey('WSSEndUser_FindContent')" label="$SearchHelp"><xsl:value-of select="$SearchHelp" /></a> 
          </xsl:otherwise>
        </xsl:choose>
        </li>
        <li><xsl:value-of select="$AdditionalResources2" /></li>
    </ul>


    
  </span>
  </div>
</xsl:template>

<!-- Main body template. Sets the Results view (Relevance or date) options -->
<xsl:template name="dvt_1.body">
  <xsl:if test="$ShowActionLinks">
  <div class="srch-sort-right2" accesskey="W"> 
        <xsl:if test="$LangPickerNodeSet and count($LangPickerNodeSet) &gt; 0">
          <xsl:value-of select="$LangPickerHeading"/>
          <select class="srch-dropdown" onchange="window.location.href=this.value" id="langpickerdd">
            <xsl:for-each select="$LangPickerNodeSet">
              <xsl:element name="option">
                <xsl:attribute name="value"><xsl:value-of select="@url"/></xsl:attribute>
                <xsl:if test="@selected = 'true'">
                  	<xsl:attribute name="selected">selected</xsl:attribute>
                </xsl:if>
                <xsl:value-of select="@title"/>
              </xsl:element>
            </xsl:for-each>        
          </select>
          <xsl:text disable-output-escaping="yes"> </xsl:text>
        </xsl:if>
<xsl:if test="$ShowDropDown = 'true'">
 <xsl:value-of select="$SortBy" /> 
<select id="dropdown" title="{$SortOptions}" onchange="PostToUrl(this.value)" class="srch-dropdown">
  <xsl:if test="$DropDownOption = '0' or $ViewByUrl != ''">
    <xsl:element name="option"> 
       <xsl:attribute name="value"><xsl:value-of select="$ViewByUrl"/></xsl:attribute>
       <xsl:if test="$DropDownOption = '0'"><xsl:attribute
name="selected">selected</xsl:attribute></xsl:if>
       <xsl:value-of select="$Relevancy"/>
    </xsl:element>
  </xsl:if>
  <xsl:if test="$DropDownOption = '1' or $ViewByUrl != ''">
         <xsl:element name="option"> 
       <xsl:attribute name="value"><xsl:value-of select="$ViewByUrl"/></xsl:attribute>
       <xsl:if test="$DropDownOption = '1'"><xsl:attribute
name="selected">selected</xsl:attribute></xsl:if>
       <xsl:value-of select="$ModifiedDate"/>
   </xsl:element>
  </xsl:if>  
  </select>  
</xsl:if>
   <xsl:if test="$AlertMeLink">  
     <xsl:if test="$ShowDropDown = 'true'">
     </xsl:if>
    <span class="srch-alertme" > <a href ="{$AlertMeLink}" id="CSR_AM2" title="{$AlertMeText}"><img style="vertical-align: middle;" src="/_layouts/images/bell.gif" alt="" border="0"/></a><xsl:text disable-output-escaping="yes"> </xsl:text>
   </span>
   </xsl:if>
   <xsl:if test="string-length($SrchRSSLink) &gt; 0">  
     
     <a type="application/rss+xml" href ="{$SrchRSSLink}" title="{$SrchRSSText}" id="SRCHRSSL"><img style="vertical-align: middle;" border="0" src="/_layouts/images/rss.gif" alt=""/></a><xsl:text disable-output-escaping="yes"> </xsl:text>
   </xsl:if>
   <xsl:if test="string-length($SearchProviderLink) &gt; 0">    
     <a href ="{$SearchProviderLink}" title="{$SearchProviderAlt}" ><img style="vertical-align: middle;" border="0" src="/_layouts/images/searchfolder.png" alt=""/></a>
   </xsl:if>
  </div>
  </xsl:if>
  <div class="srch-results" accesskey="W">
  <xsl:apply-templates />
  </div>  
  <xsl:call-template name="DisplayMoreResultsAnchor" />
</xsl:template><!-- This template is called for each result -->
<xsl:template match="TotalResults">
</xsl:template>
<xsl:template match="NumberOfResults">
</xsl:template>

<xsl:template match="Result"> 
  <xsl:variable name="id" select="id"/>
  <xsl:variable name="currentId" select="concat($IdPrefix,$id)"/>
  <xsl:variable name="url" select="url"/>
  
<xsl:choose>
<xsl:when test="string-length(picturethumbnailurl) &gt; 0 and contentclass[. = 'STS_ListItem_PictureLibrary']">
  <div style=" padding-top: 2px; padding-bottom: 2px;">
   <div class="srch-picture1">
      <img src="/_layouts/images/imageresult_16x16.png" />
   </div>
   <div class="srch-picture2">
      <img class="srch-picture" src="{picturethumbnailurl}" alt="" />
   </div>
      <span><ul class="srch-picturetext">
      <li class="srch-Title2 srch-Title5">
         <a href="{$url}" id="{concat('CSR_',$id)}" title="{title}">
         <xsl:choose>
            <xsl:when test="hithighlightedproperties/HHTitle[. != '']">
              <xsl:call-template name="HitHighlighting">
                 <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> 
              </xsl:call-template>   
            </xsl:when>
            <xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> 
         </xsl:choose>
         </a>
      </li>

       <li>
           <xsl:if test="string-length(picturewidth) &gt; 0 and string-length(pictureheight) &gt; 0">
              <xsl:value-of select="$Size" />
              <xsl:value-of select="picturewidth" />
		      <xsl:value-of select="$Multiply" />
		      <xsl:value-of select="pictureheight" />
            
	        <xsl:if test="string-length(size) &gt; 0">       
               <xsl:if test="number(size) &gt; 0">
                   <xsl:text disable-output-escaping="yes"> </xsl:text>
                  <xsl:choose>
                      <xsl:when test="round(size div 1024) &lt; 1"><xsl:value-of select="size" /> Bytes</xsl:when>
                      <xsl:when test="round(size div (1024 *1024)) &lt; 1"><xsl:value-of select="round(size div 1024)" />KB</xsl:when>
                      <xsl:otherwise><xsl:value-of select="round(size div (1024 * 1024))"/>MB</xsl:otherwise>
                  </xsl:choose>    
               </xsl:if>
            </xsl:if>
            </xsl:if>

            <xsl:if test="string-length(datepicturetaken) &gt; 0">
                <xsl:text disable-output-escaping="yes"> </xsl:text>
                <xsl:value-of select="$PictureTaken" />
                <xsl:value-of select="datepicturetaken" />
             </xsl:if>

             <xsl:if test="string-length(author) &gt; 0">   
                 <xsl:text disable-output-escaping="yes"> </xsl:text>
                 <xsl:value-of select="$Authors" />
                 <xsl:value-of select="author" /> 
             </xsl:if>

             <xsl:if test="string-length(write) &gt; 0">   
                 <xsl:text disable-output-escaping="yes"> </xsl:text>
                 <xsl:value-of select="$Date" />
                 <xsl:value-of select="write" /> 
             </xsl:if> 

          </li>
   
          <li>  
             <span class="srch-URL2" id="{concat($currentId,'_Url')}">     
                  <xsl:choose>
        <xsl:when test="hithighlightedproperties/HHUrl[. != '']">
           <xsl:call-template name="HitHighlighting">
              <xsl:with-param name="hh" select="hithighlightedproperties/HHUrl" /> 
           </xsl:call-template> 
        </xsl:when>
       <xsl:otherwise>
             <xsl:value-of select="url"/>
      </xsl:otherwise> 
      </xsl:choose>
                
             </span>           	 
          </li></ul>
       </span>
     </div>
     <div class="srch-clear">
       <img alt="" src="/_layouts/images/blank.gif" />
     </div>    
</xsl:when>
<xsl:otherwise>
  <div class="srch-Icon" id="{concat($currentId,'_Icon')}"> 
        <img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
  </div>
  <div class="srch-Title2">
  <div class="srch-Title3">
    <!-- links with the file scheme only work in ie if they are unescaped. For  
         this reason here we will render the link using disable-output-escaping if the url 
         begins with file.-->
    <xsl:choose>
      <xsl:when test="substring($url,1,5) = 'file:' and $IsDesignMode = 'False'">
        <xsl:text     disable-output-escaping="yes">&lt;a href=&quot;</xsl:text>
        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($url)" />
        <xsl:text     disable-output-escaping="yes">&quot; id=&quot;</xsl:text>
        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(concat($currentId,'_Title'))" />
        <xsl:text     disable-output-escaping="yes">&quot; title=&quot;</xsl:text>
        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(title)" />
        <xsl:text     disable-output-escaping="yes">&quot;&gt;</xsl:text>
        <xsl:choose>
         <xsl:when test="hithighlightedproperties/HHTitle[. != '']">
          <xsl:call-template name="HitHighlighting">
           <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> 
          </xsl:call-template>   
         </xsl:when>
         <xsl:otherwise><xsl:value-of select="srwrt:HtmlEncode(title)"/></xsl:otherwise> 
        </xsl:choose>
        <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <a id="{concat($currentId,'_Title')}">
          <xsl:attribute name="href">
            <xsl:value-of  select="$url"/>
          </xsl:attribute>
          <xsl:attribute name="title">
            <xsl:value-of select="title"/>
          </xsl:attribute>
        <xsl:choose>
         <xsl:when test="hithighlightedproperties/HHTitle[. != '']">
          <xsl:call-template name="HitHighlighting">
           <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> 
          </xsl:call-template>   
         </xsl:when>
         <xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> 
        </xsl:choose>
        </a>
      </xsl:otherwise>
    </xsl:choose>
  </div>
  </div>

   <div class="srch-Description2">
   
    <xsl:choose>
    <xsl:when test="hithighlightedsummary[. != '']">
         <xsl:call-template name="HitHighlighting">
           <xsl:with-param name="hh" select="hithighlightedsummary" /> 
         </xsl:call-template> 
    </xsl:when>   
     <xsl:when test="description[. != '']">
        <xsl:value-of select="description"/>     
     </xsl:when> 
     <xsl:otherwise>
      <img alt="" src="/_layouts/images/blank.gif" height="0" width="0"/>
     </xsl:otherwise>     
    </xsl:choose>
   </div >
    

    <div class="srch-Metadata2">
      <xsl:call-template name="DisplayAuthors">
      <xsl:with-param name="author" select="author" />
     </xsl:call-template>   
     <xsl:call-template name="DisplayDate">
      <xsl:with-param name="write" select="write" />
     </xsl:call-template>        
      <xsl:if test="string-length(popularsocialtag0) &gt; 0">
        <xsl:text disable-output-escaping="yes"> </xsl:text>
        <xsl:value-of select="$Tags" />
        <xsl:value-of select="popularsocialtag0"/>         
      <xsl:if test="string-length(popularsocialtag1) &gt; 0">
        ::
        <xsl:value-of select="popularsocialtag1"/>      
      </xsl:if> 
      <xsl:if test="string-length(popularsocialtag2) &gt; 0">
        ::
       <xsl:value-of select="popularsocialtag2"/>      
      </xsl:if> 
     </xsl:if>
     <xsl:call-template name="DisplaySize">
      <xsl:with-param name="size" select="size" />
     </xsl:call-template>  
     <img style="display:none;" alt="" src="/_layouts/images/blank.gif"/>
    </div>

    <p class="srch-Metadata1">
    <span><span class="srch-URL2" id="{concat($currentId,'_Url')}">     

      <xsl:choose>
        <xsl:when test="hithighlightedproperties/HHUrl[. != '']">
           <xsl:call-template name="HitHighlighting">
              <xsl:with-param name="hh" select="hithighlightedproperties/HHUrl" /> 
           </xsl:call-template> 
        </xsl:when>
       <xsl:otherwise>
           <xsl:value-of select="url"/>
       </xsl:otherwise> 
      </xsl:choose>
      </span>
     <xsl:call-template name="DisplayCollapsingStatusLink">
        <xsl:with-param name="status" select="collapsingstatus"/>
        <xsl:with-param name="workid" select="workid"/>
        <xsl:with-param name="id" select="concat($currentId,'_CS')"/>
     </xsl:call-template>        
      <xsl:call-template name="ViewInBrowser">
      <xsl:with-param name="browserlink" select="serverredirectedurl" />
      <xsl:with-param name="currentId" select="$currentId" />
    </xsl:call-template>           
    </span>                
    </p>
   </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="HitHighlighting"> 
 <xsl:param name="hh" /> 
 <xsl:apply-templates select="$hh"/> 
</xsl:template>

<xsl:template match="ddd"> 
  …  
</xsl:template> 
<xsl:template match="c0"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c1"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c2"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c3"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c4"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c5"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c6"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c7"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c8"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c9"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 

<xsl:template name="DisplayAuthors">
  <xsl:param name="author" /> 
  <xsl:if test="string-length($author) &gt; 0"> 
   <xsl:value-of select="$Authors" />
   <xsl:choose>
   <xsl:when test="string-length(author_multival) &gt; 0"> 
   <xsl:for-each select="author_multival">
    <xsl:variable name="p" select="position()"/>
    <xsl:if test="$p &gt; 1">
       	<xsl:text disable-output-escaping="yes">,</xsl:text> 
       	<xsl:text disable-output-escaping="yes"> </xsl:text> 
    </xsl:if>
    <xsl:value-of select="."/>
  </xsl:for-each>
  </xsl:when>
  <xsl:otherwise>
   <xsl:value-of select="author"/>      
  </xsl:otherwise>
  </xsl:choose>
  </xsl:if>
</xsl:template>

<xsl:template name="DisplayDate">
  <xsl:param name="write" /> 
  <xsl:if test="string-length($write) &gt; 0"> 
   <xsl:if test="string-length(author) &gt; 0">
   <xsl:text disable-output-escaping="yes"> </xsl:text> 
   </xsl:if>    
   <xsl:value-of select="$Date" />
   <xsl:value-of select="write"/>      
  </xsl:if>
</xsl:template>


<!-- The size attribute for each result is prepared here -->
<xsl:template name="DisplaySize">
  <xsl:param name="size" /> 
  <xsl:if test="string-length($size) &gt; 0">        
   <xsl:if test="number($size) &gt; 0">
    <xsl:if test="string-length(write) &gt; 0 or string-length(author) &gt; 0">    
    <xsl:text disable-output-escaping="yes"> </xsl:text>
    </xsl:if>
    <xsl:value-of select="$Size" />
    <xsl:choose>
     <xsl:when test="round($size div 1024) &lt; 1"><xsl:value-of select="$size" /> Bytes</xsl:when>
     <xsl:when test="round($size div (1024 *1024)) &lt; 1"><xsl:value-of select="round($size div 1024)" />KB</xsl:when>
     <xsl:otherwise><xsl:value-of select="round($size div (1024 * 1024))"/>MB</xsl:otherwise>
    </xsl:choose>    
   </xsl:if>
  </xsl:if>
</xsl:template>

<xsl:template name="ViewInBrowser">
  <xsl:param name="browserlink" />
  <xsl:param name="currentId" />
  <xsl:if test="string-length($browserlink) &gt; 0">
    <span class="srch-urllink"><a href="{$browserlink}" id="{concat($currentId,'_VBlink')}">
      <xsl:value-of select="$ViewInBrowser" />
    </a></span>
  </xsl:if>
</xsl:template>

<!-- A generic template to display string with non 0 string length (used for author and lastmodified time -->
<xsl:template name="DisplayString">
  <xsl:param name="str" />
  <xsl:if test='string-length($str) &gt; 0'>   
   - 
   <xsl:value-of select="$str" /> 
  </xsl:if>
</xsl:template>

<!-- document collapsing link setup -->
<xsl:template name="DisplayCollapsingStatusLink">
    <xsl:param name="status"/>
    <xsl:param name="workid"/>
    <xsl:param name="id"/>
    <xsl:if test="$CollapsingStatusLink">
      <xsl:choose>
          <xsl:when test="$status=1">
              <xsl:variable name="CollapsingStatusHref" select="concat(substring-before($CollapsingStatusLink, '$$COLLAPSE_PARAM$$'), 'duplicates:&quot;', $workid, '&quot;', substring-after($CollapsingStatusLink, '$$COLLAPSE_PARAM$$'))"/>
              <span class="srch-urllink"><a href="{$CollapsingStatusHref}" id="$id" title="{$CollapseDuplicatesText}">
              <xsl:value-of select="$CollapseDuplicatesText"/>
              </a></span>
          </xsl:when>
      </xsl:choose>
    </xsl:if>
</xsl:template><!-- The "view more results" for fixed query -->
<xsl:template name="DisplayMoreResultsAnchor">
  <xsl:if test="$MoreResultsLink">
   <a href="{$MoreResultsLink}" id="{concat($IdPrefix,'_MRL')}">
    <xsl:value-of select="$MoreResultsText"/> 
    </a>
   </xsl:if>
</xsl:template>

<xsl:template match="All_Results/DiscoveredDefinitions">
  <xsl:variable name="FoundIn" select="DDFoundIn" />
  <xsl:variable name="DDSearchTerm" select="DDSearchTerm" />
  <xsl:if test="$DisplayDiscoveredDefinition = 'True' and string-length($DDSearchTerm) &gt; 0">
    <script language="javascript">
      function ToggleDefinitionSelection()
      {
        var selection = document.getElementById("definitionSelection");
        if (selection.style.display == "none")
        {
          selection.style.display = "inline";
        }
        else
        {
          selection.style.display = "none";
        }
      }
    </script> 
    <div class="srch-Description2 srch-definition2">
      <a href="javascript:ToggleDefinitionSelection();" id="{concat($IdPrefix,'1_DEF')}" mss_definition="true">
        <xsl:value-of select="$DefinitionIntro" /><strong><xsl:value-of select="$DDSearchTerm"/></strong></a>
      <div id="definitionSelection" class="srch-Description2" style="display:none;">
        <xsl:for-each select="DDefinitions/DDefinition">
          <br/>
          <xsl:variable name="DDUrl" select="DDUrl" />
          <img style="display:inline" alt="" src="/_layouts/images/discovered_definitions_bullet.png" />
          <xsl:value-of select="DDStart"/>
          <strong>
            <xsl:value-of select="DDBold"/>
          </strong>
          <xsl:value-of select="DDEnd"/>
          <br/>
          <span class="srch-definition">
          <xsl:value-of select="$FoundIn"/>
          <xsl:text disable-output-escaping="yes">&#160;</xsl:text>
          <a href="{$DDUrl}">
          <xsl:value-of select="DDTitle"/> 
          </a>
          </span>
        </xsl:for-each>
      </div>
    </div>
  </xsl:if>   
</xsl:template>

<!-- XSL transformation starts here -->
<xsl:template match="/" xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">
  <xsl:if test="$AlertMeLink">  
   <input type="hidden" name="P_Query" />
   <input type="hidden" name="P_LastNotificationTime" />
  </xsl:if>
  <xsl:choose>
   <xsl:when test="$IsNoKeyword = 'True'" >
    <xsl:call-template name="dvt_1.noKeyword" />
   </xsl:when>
   <xsl:when test="$ShowMessage = 'True'">
     <xsl:call-template name="dvt_1.empty" />
   </xsl:when>
   <xsl:otherwise>
    <xsl:call-template name="dvt_1.body"/>      
   </xsl:otherwise>
  </xsl:choose>
</xsl:template> 

 

<!-- End of Stylesheet -->
</xsl:stylesheet></Xsl>
<SampleData>
<All_Results></All_Results></SampleData>
<DataFields>
</DataFields>
<ParameterBindings>
			</ParameterBindings>
<SelectColumns>

<Columns>
  <Column Name="WorkId"/>
  <Column Name="Rank"/>
  <Column Name="Title"/>
  <Column Name="Author"/>
  <Column Name="Size"/>
  <Column Name="Path"/>
  <Column Name="Description"/>
  <Column Name="Write"/>
  <Column Name="SiteName"/>
  <Column Name="CollapsingStatus"/>
  <Column Name="HitHighlightedSummary"/>
  <Column Name="HitHighlightedProperties"/>
  <Column Name="ContentClass"/>
  <Column Name="IsDocument"/>
  <Column Name="PictureThumbnailURL"/>
  <Column Name="PopularSocialTags"/>
  <Column Name="PictureWidth"/>
  <Column Name="PictureHeight"/>
  <Column Name="DatePictureTaken"/>
  <Column Name="ServerRedirectedURL"/>
  
</Columns>
</SelectColumns>
</SEARCHWC:CoreResultsWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>                             
              <SharePoint:UIVersionedContent UIVersion="3" runat="server">
              <ContentTemplate>                        
	                      </td>
                      </tr>
				  </table>
				</td>
			  </tr>
               <tr>
                 <td valign="top" ID="BottomCell" width="100%" style="padding-top: 10px"> 
              </ContentTemplate>
              </SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>                        
	                                  </span>
				</div>
                                <div class="srch-maintop2">
</ContentTemplate>
</SharePoint:UIVersionedContent>
                  <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_BottomZone%>" id="BottomZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>
<SEARCHWC:HighConfidenceWebPart runat="server" NoDefaultStyle="" MoreLinkLabel="View more results &#187;" DisplayHCTitle="False" SharedPropertiesVersion="4" IsLocationPeople="False" FrameType="None" InitialAsyncDataFetch="False" DisplayTerm="True" UseSQLDataSourcePaging="True" ListId="00000000-0000-0000-0000-000000000000" EnableStemming="False" ShowMessages="False" EnablePhonetic="False" MissingAssembly="Cannot import this Web Part." ViewContentTypeId="" ID="g_48e832c2_d2b0_4887_af25_08263c082351" AllowRemove="True" AllowHide="True" DateFormat="DateOnly" AutoRefreshInterval="60" DisplayHCImage="False" ListUrl="" ViewFlag="0" AllowEdit="True" ExportMode="All" ShowWithSampleData="False" PartImageLarge="" PartOrder="2" DisplayDescription="True" IsIncluded="True" IsVisible="True" ListDisplayName="" AllowMinimize="True" DisplayHCDescription="False" ConnectionID="00000000-0000-0000-0000-000000000000" ResultsPerPage="10" DisplayUrl="True" UseLocationVisualization="True" IgnoreNoise="True" DisplayHCProps="False" FrameState="Normal" IsIncludedFilter="" DataSourceID="" SuppressWebPartChrome="False" HelpMode="Modeless" HelpLink="" CharactersInUrl="90" ResultsPerTypeLimit="1" AutoRefresh="False" BestBetsLimit="3" AllowConnect="False" AllowZoneChange="True" CharactersInSummary="185" ExportControlledProperties="True" EnableNicknames="False" QueryID="Query1" DefaultRankingModelID="" DetailLink="" Dir="Default" DisplayBestBetTitle="True" Title="Search Best Bets" Description="Displays high-confidence results on a search results page." ManualRefresh="False" PartImageSmall="" AsyncRefresh="False" ShowMoreLink="False" RemoveDuplicates="True" ChromeType="None" PageSize="-1" DisplayDefinition="True" __MarkupType="vsattributemarkup" __WebPartId="{1F68F4AA-392F-4599-8C07-621307B10CC3}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><Xsl>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="xml" indent="no"/>
<xsl:param name="BBLimit">3</xsl:param>
<xsl:param name="DisplayDefinition">True</xsl:param>
<xsl:param name="DisplayDescription">False</xsl:param>
<xsl:param name="DisplayHCDescription">False</xsl:param>
<xsl:param name="DisplayHCImage">True</xsl:param>
<xsl:param name="DisplayHCProps">True</xsl:param>
<xsl:param name="DisplayHCTitle">True</xsl:param>
<xsl:param name="DisplayTerm">True</xsl:param>
<xsl:param name="DisplayTitle">True</xsl:param>
<xsl:param name="DisplayUrl">True</xsl:param>
<xsl:param name="ResultsPerTypeLimit">1</xsl:param>
<xsl:param name="DisplayST">True</xsl:param>
<xsl:param name="DisplayBB">True</xsl:param>
<xsl:param name="DisplayHC">True</xsl:param>
<xsl:param name="ResponsibilityText" />
<xsl:param name="SkillsText" />
<xsl:param name="HighConfTitle" />
<xsl:param name="IsFirstPage">True</xsl:param>
<xsl:param name="BestBetTitle"></xsl:param>
<xsl:param name="RecommendationText"></xsl:param>
<xsl:param name="IsDesignMode">True</xsl:param>

<xsl:template match="All_Results/SpecialTermInformation">
 <xsl:variable name="keyword" select="Keyword" />
 <xsl:if test="$DisplayST = 'True'" >
   <xsl:if test="($DisplayTerm = 'True'and string-length($keyword) &gt; 0) or ($DisplayDefinition = 'True' and string-length(Description) &gt; 0)" >
     <div class="srch-BB-Result"> 
       <xsl:if test="$DisplayTerm = 'True'and string-length($keyword) &gt; 0">  
         <span class="srch-Title">
           <img src="star.png" title="{$RecommendationText}" />
           <span class="srch-BBTitle">
               <strong>
               <xsl:value-of select="$keyword"/>
               </strong>
           </span>
         </span>
       </xsl:if>
       <xsl:if test="$DisplayDefinition = 'True'" >
         <div class="srch-BB-Description2">      
         <xsl:value-of disable-output-escaping="yes" select="Description"/>
         </div>
       </xsl:if>   
     </div>  
   </xsl:if>   
 </xsl:if>
</xsl:template>


<xsl:template match="All_Results/BestBetResults/Result"> 
 <xsl:if test="$DisplayBB = 'True'" >
  <xsl:if test="position() &lt;= $BBLimit" >
  <xsl:variable name="url" select="url"/>
  <xsl:variable name="id" select="id" />
  <div class="srch-BB-Result">
  <xsl:if test="$DisplayTitle = 'True'" >
    <span class="srch-Title"> 
     <img src="star.png" title="{$RecommendationText}" />
     <span class="srch-BBTitle">
        <!-- links with the file scheme only work in ie if they are unescaped. For  &#xA;             this reason here we will render the link using disable-output-escaping if the url &#xA;             begins with file.-->
        <xsl:choose>
          <xsl:when test="substring($url,1,5) = 'file:' and $IsDesignMode = 'False'">
            <xsl:text     disable-output-escaping="yes">&lt;a href=&quot;</xsl:text>
            <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($url)" />
            <xsl:text     disable-output-escaping="yes">&quot; id=&quot;</xsl:text>
            <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(concat('BBR_',$id))" />
            <xsl:text     disable-output-escaping="yes">&quot; title=&quot;</xsl:text>
            <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(title)" />
            <xsl:text     disable-output-escaping="yes">&quot;&gt;</xsl:text>
            <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlEncode(title)"/>
            <xsl:text     disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
          </xsl:when>
          <xsl:otherwise>
            <a id="{concat('BBR_',$id)}">
              <xsl:attribute name="href">
                <xsl:value-of  select="$url"/>
              </xsl:attribute>
              <xsl:attribute name="title">
                <xsl:value-of select="title"/>
              </xsl:attribute>
              <xsl:value-of select="title"/> 
            </a> 
          </xsl:otherwise>
        </xsl:choose>
     </span>
    </span>
  </xsl:if>

  <xsl:if test="$DisplayDescription = 'True' and description[. != '']" >
      <div class="srch-BB-Description2">
      <xsl:value-of select="description"/> 
      </div>
  </xsl:if>
  <xsl:if test="$DisplayUrl = 'True'" >
     <div class="srch-BB-URL3">
     <span class="srch-BB-URL2">
      <xsl:value-of select="$url"/> 
     </span>
     </div>
  </xsl:if>
  </div>
  </xsl:if>
 </xsl:if>   
</xsl:template>

<xsl:template match="All_Results/HighConfidenceResults/Result"> 
 <xsl:if test="$DisplayHC = 'True' and $IsFirstPage = 'True'" >
  <xsl:variable name="prefix">IMNRC(&apos;</xsl:variable>
  <xsl:variable name="suffix">&apos;)</xsl:variable>
  <xsl:variable name="url" select="url"/>
  <xsl:variable name="id" select="id"/>
  <xsl:variable name="pictureurl" select="highconfidenceimageurl"/>
  <xsl:variable name="jobtitle" select="highconfidencedisplayproperty1"/>
  <xsl:variable name="workphone" select="highconfidencedisplayproperty2"/>
  <xsl:variable name="department" select="highconfidencedisplayproperty3"/>
  <xsl:variable name="officenumber" select="highconfidencedisplayproperty4"/>
  <xsl:variable name="preferredname" select="highconfidencedisplayproperty5"/>
  <xsl:variable name="aboutme" select="highconfidencedisplayproperty8"/>
  <xsl:variable name="responsibility" select="highconfidencedisplayproperty9"/>
  <xsl:variable name="skills" select="highconfidencedisplayproperty10"/>
  <xsl:variable name="workemail" select="highconfidencedisplayproperty11"/>
  <xsl:variable name="imgid" select="concat('HSR_IMG_',$id)"/>

  <div class="srch-HCMain ">
  <span class="srch-HCSocDistTitle">
    <xsl:value-of select="$HighConfTitle" />
  </span> 
  <table class="psrch-HCresult" CELLPADDING="0" CELLSPACING="0" BORDER="0" width="100%">
    <tr>
      <td class="psrch-imgcell" width="0%">
        <xsl:if test = "$DisplayHCImage = 'True'">
          <table class="psrch-profimg" CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="77px" HEIGHT="77px">
            <tr>
              <td align="middle" valign="middle">
                <a href="{$url}" id="{concat('HSR_IMGL_',$id)}" title="{$url}">
                  <img id="{$imgid}" alt="{$preferredname}" border="0" onload="resizeProfileImage('{$imgid}')">
                    <xsl:attribute name="src">
                    <xsl:choose>
                      <xsl:when test = "string-length($pictureurl) &gt; 0"><xsl:value-of select="$pictureurl" /></xsl:when>
                      <xsl:otherwise>/_layouts/images/no_pic.gif</xsl:otherwise>
				    </xsl:choose>                    
				    </xsl:attribute>
                  </img>
                  <script>
                    window.setTimeout("resizeProfileImage('<xsl:value-of select="$imgid"/>')", 1)
                  </script>
                </a>
              </td>
            </tr>
          </table>
        </xsl:if>
      </td>
      <td valign="top" class="psrch-propcell" width="100%">
        <span class="psrch-Title">
          <img border="0" height="12" width="12" src="/_layouts/images/imnhdr.gif" onload="{concat($prefix, $workemail, $suffix)}" ShowOfflinePawn="1" id="{concat('HSRP_',$id)}" />
          <a href="{$url}" id="{concat('HSR_',$id)}">
            <xsl:value-of select="$preferredname"/>
          </a>
        </span>
        <br/>
        <div class="psrch-Description">
          <xsl:call-template name="DisplayOfficeProfile">
            <xsl:with-param name="title" select="$jobtitle" />
            <xsl:with-param name="dep" select="$department" />
            <xsl:with-param name="phone" select="$workphone" />
            <xsl:with-param name="office" select="$officenumber" />
          </xsl:call-template>
        </div>
        <div class="psrch-Description">
          <xsl:choose>
            <xsl:when test="$aboutme[. != '']">
              <xsl:value-of disable-output-escaping="yes" select="$aboutme"/>
              <br/>
            </xsl:when>
          </xsl:choose>
          <xsl:choose>
            <xsl:when test="$responsibility[. != ''] or $skills[. != '']">
              <xsl:choose>
                <xsl:when test="$responsibility[. != '']">
                  <span class="psrch-PropLabel">
                    <xsl:value-of disable-output-escaping="yes" select="$ResponsibilityText"/>
                  </span>
                  <span class="psrch-PropValue">
                    <xsl:value-of select="translate($responsibility,';',',')"/>
                    <xsl:text> </xsl:text>
                  </span>
                </xsl:when>
              </xsl:choose>
              <xsl:choose>
                <xsl:when test="$skills[. != '']">
                  <xsl:if test="$responsibility[. != ''] and $skills[. != '']">
                    <br/>
                  </xsl:if>
                  <span class="psrch-PropLabel">
                    <xsl:value-of disable-output-escaping="yes" select="$SkillsText"/>
                  </span>
                  <span class="psrch-PropValue">
                    <xsl:value-of select="translate($skills,';',',')"/>
                  </span>
                </xsl:when>
              </xsl:choose>
              <br/>
            </xsl:when>
            <xsl:otherwise><span /></xsl:otherwise>
          </xsl:choose>
        </div>
      </td>
    </tr>
  </table>          
  </div>
 </xsl:if>   
</xsl:template>

<!-- XSL transformation starts here -->
<xsl:template match="/" xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">
    <xsl:call-template name="dvt_1.body"/>     
</xsl:template> 

 

<xsl:template name="DisplayOfficeProfile">
  <xsl:param name="title" />
  <xsl:param name="dep" />
  <xsl:param name="phone" />
  <xsl:param name="office" />

  <span class="psrch-Metadata">
  <xsl:if test='string-length($title) &gt; 0'>   
   <xsl:value-of select="$title" />  
   -
  </xsl:if>
  <xsl:if test='string-length($dep) &gt; 0'>   
   <xsl:value-of select="$dep" />  
   -
  </xsl:if>
  <xsl:if test='string-length($phone) &gt; 0'>   
   <xsl:value-of select="$phone" />  
   -
  </xsl:if>
  <xsl:if test='string-length($office) &gt; 0'>   
   <xsl:value-of select="$office" />  
  </xsl:if>
  </span>
  <br/>
</xsl:template>


<xsl:template name="dvt_1.body">
<xsl:if test="(/*/*)">
  <div class="srch-BestBets">
    <xsl:if test="$IsFirstPage = 'True'" >
      <xsl:apply-templates />
      <xsl:if test="string-length($BestBetTitle) &gt; 0">
        <div class="srch-BestBetsBottom">
        <div class="srch-BestBetsBottom2">
           <img alt="" src="/_layouts/images/blank.gif" />
        </div>
        </div>
      </xsl:if>
    </xsl:if>
  </div>
</xsl:if>
</xsl:template>


<!-- End of Stylesheet -->
</xsl:stylesheet></Xsl>
<SampleData>
<All_Results>
  <SpecialTermInformation>
  <Keyword>Sample Keyword</Keyword> 
  <Description>This is the description text for Sample Keyword. It is typically a short paragraph defining and setting context for the keyword, optionally followed by a list of Best Bets.</Description> 
  </SpecialTermInformation>
  <BestBetResults>
  <Result>
  <id>1</id> 
  <title>Example -- a site (and the first Best Bet for Sample Keyword)</title> 
  <url>http://example</url> 
  <description>Here is a description for the first best bet for Sample Keyword, whose URL is http://example.</description> 
  </Result>
  <Result>
  <id>2</id> 
  <title>Example.COM -- an internet site (and the second Best Bet for Sample Keyword)</title> 
  <url>http://windows/</url> 
  <description>This is the description for Example.COM, explaining why it is a Best Bet for Sample Keyword.</description> 
  </Result>
  </BestBetResults>
  <HighConfidenceResults /> 
  </All_Results>
</SampleData>
<DataFields>
</DataFields>
</SEARCHWC:HighConfidenceWebPart>

<SEARCHWC:TopFederatedResultsWebPart runat="server" NoDefaultStyle="" MoreLinkLabel="View more results &#187;" FrameType="None" InitialAsyncDataFetch="False" UseSQLDataSourcePaging="True" ListId="00000000-0000-0000-0000-000000000000" EnableStemming="False" ShowMessages="False" EnablePhonetic="False" MissingAssembly="Cannot import this Web Part." ViewContentTypeId="" ID="g_4466a38a_5044_451c_9e11_7d9a3ff1c2a3" AllowRemove="True" AllowHide="True" DateFormat="DateOnly" AutoRefreshInterval="60" ListUrl="" ViewFlag="0" AllowEdit="True" ExportMode="All" ShowWithSampleData="False" PartImageLarge="" PartOrder="4" IsLocationPeople="False" IsIncluded="True" IsVisible="True" ListDisplayName="" AllowMinimize="True" ConnectionID="00000000-0000-0000-0000-000000000000" ResultsPerPage="1" UseLocationVisualization="True" IgnoreNoise="True" FrameState="Normal" IsIncludedFilter="" DataSourceID="" SuppressWebPartChrome="False" HelpMode="Modeless" HelpLink="" CharactersInUrl="90" AutoRefresh="False" Description="Displays the Top Federated result from the configured location." AllowConnect="False" AllowZoneChange="True" CharactersInSummary="185" ExportControlledProperties="True" EnableNicknames="False" DefaultRankingModelID="" DetailLink="" Dir="Default" Title="Top Federated Results" ManualRefresh="False" PartImageSmall="" AsyncRefresh="False" ShowMoreLink="False" RemoveDuplicates="True" ChromeType="None" PageSize="-1" __MarkupType="vsattributemarkup" __WebPartId="{08E94A70-71D3-4943-91B9-5DD8468C2F48}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
               version="1.0" exclude-result-prefixes="xsl ddwrt msxsl srwrt" 
               xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
               xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
               xmlns:atom2="http://purl.org/atom/ns#" xmlns:ddwrt2="urn:frontpage:internal">
               <xsl:output method="xml" indent="no"/>

    <xsl:param name="ResultsPerPage">3</xsl:param>
    <xsl:param name="IsDesignMode">True</xsl:param>
    <xsl:param name="UrlMaxLength">50</xsl:param>
    <xsl:param name="SummaryMaxLength">300</xsl:param>
    <xsl:param name="ShowMoreLink">true</xsl:param>
    <xsl:param name="MoreLink"></xsl:param>
    <xsl:param name="MoreLinkLabel"></xsl:param>
    <xsl:param name="IdPrefix"></xsl:param>
    <xsl:param name="WebpartTitle"></xsl:param>
    <xsl:param name="DefaultIconDescription"></xsl:param>
    <xsl:param name="BrandingIcon">http://search.live.com/s/rsslogo.gif</xsl:param>
    <xsl:param name="IsFirstPage">true</xsl:param>
    <xsl:param name="RecommendationText"></xsl:param>
    <xsl:param name="ShowSeperationLine">True</xsl:param>

        <xsl:template match="rss" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom2="http://purl.org/atom/ns#">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'rss'"/>
            </xsl:call-template>
        </xsl:template>
        		
        <xsl:template match="rdf:RDF">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'rdf'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template match="atom:feed">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'atom'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template match="atom2:feed">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'atom2'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template name="GetLink" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="link"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:link"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:link/@href"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:link/@href"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="link"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetTitle" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="title"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:title"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="title"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetDescription" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="description"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:description"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:summary"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:summary"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="description"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetItemIconDescription">
            <xsl:choose>
               <xsl:when test="$ShowSeperationLine= 'True'">
                  <xsl:value-of select="$RecommendationText" />
               </xsl:when>
               <xsl:otherwise><xsl:value-of select="$DefaultIconDescription"/></xsl:otherwise>
            </xsl:choose>
        </xsl:template>

        <xsl:template name="GetItemIcon">
            <xsl:value-of select="string('/_layouts/images/star.png')" />
        </xsl:template>

        <xsl:template name="MainTemplate">
            <xsl:param name="Type"/>
            <xsl:if test="$IsFirstPage = true()">
            <xsl:variable name="Rows" select="channel/item"/>
            <xsl:variable name="RowCount" select="count($Rows)"/>
            <xsl:variable name="ChannelTitle">
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="channel/title"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:channel/rss1:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:title"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="channel/title"/>                     
                </xsl:otherwise>
            </xsl:choose>
            </xsl:variable>
            <xsl:if test="($RowCount &gt; 0)">
               <div class="ms-searchtamain" accesskey="W" >                      
                  <xsl:call-template name="MainTemplate.body">
                    <xsl:with-param name="Rows" select="$Rows"/>
                    <xsl:with-param name="RowCount" select="count($Rows)"/>
                    <xsl:with-param name="ShowIcon" select="true()"/>
                    <xsl:with-param name="ShowUrl" select="true()"/>
                    <xsl:with-param name="StyleClassPrefix" select="string('ms-searchta')"/>
                    <xsl:with-param name="Type" select="$Type"/>
                  </xsl:call-template>
                  <xsl:call-template name="MoreLinkTemplate" >
                     <xsl:with-param name="StyleClassPrefix" select="string('ms-searchta')"/>
                  </xsl:call-template>
                  <xsl:call-template name="SeperationLineTemplate" >
                  </xsl:call-template>
               </div>
            </xsl:if>
            </xsl:if>
        </xsl:template>

        		

        <xsl:template name="MainTemplate.body">
            <xsl:param name="Rows"/>
            <xsl:param name="RowCount"/>
            <xsl:param name="ShowIcon"/>
            <xsl:param name="ShowUrl"/>
            <xsl:param name="StyleClassPrefix"/>
            <xsl:param name="Type"/>
            <xsl:variable name="BodyClass" select="concat($StyleClassPrefix,'body')" />
            <div class="{$BodyClass}">
              <xsl:for-each select="$Rows">
                <xsl:variable name="CurPosition" select="position()" />
                <xsl:variable name="CurrentId" select="concat($IdPrefix,$CurPosition)" />
                <xsl:variable name="link">
                   	<xsl:call-template name="GetLink">
                      	<xsl:with-param name="Type" select="$Type"/>
                   	</xsl:call-template>
                </xsl:variable>
                <xsl:variable name="title">
                   	<xsl:call-template name="GetTitle">
                      	<xsl:with-param name="Type" select="$Type"/>
                   	</xsl:call-template>
                </xsl:variable>
                <xsl:if test="($CurPosition &lt;= $ResultsPerPage)">
                   	<xsl:variable name="TitleClass" select="concat($StyleClassPrefix,'Title')" />
                    <div class="{$TitleClass}" >
                      	<xsl:variable name="SafeHtml">
                        	<xsl:call-template name="GetSafeHtml">
                            	<xsl:with-param name="Html" select="$title"/>
                        	</xsl:call-template>
                      </xsl:variable>
                         <xsl:if test="$ShowIcon = true()">
                            <xsl:variable name="itemIconUrl">
                               	<xsl:call-template name="GetItemIcon" />
                            </xsl:variable>
                            <xsl:variable name="itemIconDescription">
                               	<xsl:call-template name="GetItemIconDescription" />
                            </xsl:variable>
                           <img src="{$itemIconUrl}" title="{$itemIconDescription}"/>
                       </xsl:if>
                      	<xsl:choose>
                        	<xsl:when test="substring($link,1,5) = 'file:' and $IsDesignMode = 'False'">
                          		<xsl:text     disable-output-escaping="yes">&lt;a href=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($link)" />
                          		<xsl:text     disable-output-escaping="yes">&quot; id=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(concat($CurrentId, '_Title'))" />
                          		<xsl:text     disable-output-escaping="yes">&quot; class=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($TitleClass)" />
                          		<xsl:text     disable-output-escaping="yes">&quot;&gt;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="$SafeHtml"/>
                          		<xsl:text     disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
                        </xsl:when>
                        	<xsl:otherwise>
                          <a id="{concat($CurrentId, '_Title')}" class="{$TitleClass}" href="{ddwrt:EnsureAllowedProtocol(string($link))}" >
                            <xsl:value-of select="$SafeHtml" disable-output-escaping="yes"/>
                          </a> 
                        </xsl:otherwise>
                      	</xsl:choose>  
                    </div>
                    <xsl:call-template name="MainTemplate.description">
                       	<xsl:with-param name="CurrentId" select="$CurrentId"/>
                       	<xsl:with-param name="Link" select="$link"/>
                       	<xsl:with-param name="ShowUrl" select="$ShowUrl"/>
                       	<xsl:with-param name="StyleClassPrefix" select="$StyleClassPrefix"/>
                       	<xsl:with-param name="Type" select="$Type"/>
                    </xsl:call-template>
                </xsl:if>
              </xsl:for-each>
            </div>
        </xsl:template>
        		
        <xsl:template name="SeperationLineTemplate" >
           <xsl:if test="$ShowSeperationLine= 'True'">
           <div class="ms-topanswerseperation"><div class="ms-topanswerseperation2"><img src="blank.gif" /></div></div>   
           </xsl:if>    
        </xsl:template>
	    <xsl:template name="MainTemplate.description">
            <xsl:param name="CurrentId"/>
            <xsl:param name="Link"/>
            <xsl:param name="ShowUrl"/>
            <xsl:param name="StyleClassPrefix"/>
            <xsl:param name="Type"/>
            
            <xsl:variable name="DivId" select="concat($CurrentId,'_d')" />
            <xsl:variable name="LinkId" select="concat($CurrentId,'_Url')" />
            <xsl:variable name="DescOuterClass" select="concat($StyleClassPrefix,'descouter')" />
            <xsl:variable name="description">
               <xsl:call-template name="GetDescription">
                  <xsl:with-param name="Type" select="$Type"/>
               </xsl:call-template>
            </xsl:variable>
            <xsl:if test="string-length($description) &gt; 0">
                <div id="{$DivId}" class="{$DescOuterClass}">
                    <xsl:variable name="DescLongText">
                        <xsl:call-template name="GetPlainTextFromHtml">
                            <xsl:with-param name="Html" select="$description"/>
                        </xsl:call-template>
                    </xsl:variable>
                    <xsl:variable name="DescText">
                       <xsl:call-template name="TrimIfGreaterThanMax">
                          <xsl:with-param name="Source" select="$DescLongText"/>
                          <xsl:with-param name="MaxLength" select="$SummaryMaxLength"/>
                       </xsl:call-template>
                    </xsl:variable>
                    <xsl:variable name="DescClass" select="concat($StyleClassPrefix,'desc')" />
                    <div class = "{$DescClass}">
                     <xsl:value-of select="$DescText"/>
                    </div>
                    <xsl:if test="$ShowUrl = true()">
                       <xsl:variable name="UrlClass" select="concat($StyleClassPrefix,'Url')" />

		               <div class="{$UrlClass}" id="{LinkId}">

                       <xsl:variable name="ShortLink">
                          <xsl:call-template name="TrimIfGreaterThanMax">
                             <xsl:with-param name="Source" select="$Link"/>
                             <xsl:with-param name="MaxLength" select="$UrlMaxLength"/>
                          </xsl:call-template>
                       </xsl:variable>
                       <xsl:value-of select="$ShortLink"/>
                       </div>
                    </xsl:if>
                </div>
            </xsl:if>
        </xsl:template>
        		
        <xsl:template name="MoreLinkTemplate">
          <xsl:param name="StyleClassPrefix"/>
          <xsl:variable name="MoreLinkClass" select="concat($StyleClassPrefix,'morelink')" />
          <xsl:if test="$ShowMoreLink = true() and string-length($MoreLink) &gt; 0">
             <div class="{$MoreLinkClass}">
                <a href="{ddwrt:EnsureAllowedProtocol(string($MoreLink))}">
                   <xsl:value-of select="$MoreLinkLabel"/>
                </a>
             </div>
          </xsl:if>
        </xsl:template>
        <xsl:template name="GetSafeHtml">
          <xsl:param name="Html"/>
            <xsl:choose>
                <xsl:when test="$IsDesignMode = 'True'">
                     <xsl:value-of select="$Html"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="srwrt:MakeSafe($Html)"/>                     
                </xsl:otherwise>
            </xsl:choose>
         </xsl:template>
        <xsl:template name="GetPlainTextFromHtml">
          <xsl:param name="Html"/>
            <xsl:choose>
                <xsl:when test="$IsDesignMode = 'True'">
                     <xsl:value-of select="$Html"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="srwrt:GetPlainTextFromHtml($Html)"/>                     
                </xsl:otherwise>
            </xsl:choose>
         </xsl:template>
        <xsl:template name="TrimIfGreaterThanMax">
          <xsl:param name="Source"/>
          <xsl:param name="MaxLength"/>
          <xsl:choose>
            <xsl:when test="string-length($Source) &gt; $MaxLength">
              <xsl:value-of select="substring($Source, 1, $MaxLength)"/>...
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="$Source"/>
            </xsl:otherwise>
          </xsl:choose>
        </xsl:template>

        <xsl:template name="GetBrandingImage">
          <xsl:variable name="ChannelBrandingImage" select="/rss/channel/image/url" />
          <xsl:choose>          
            <xsl:when test="string-length($ChannelBrandingImage) &gt; 0 and $ChannelBrandingImage != '/s/rsslogo.gif'">
                <img src="{$ChannelBrandingImage}"/>          
            </xsl:when>
            <xsl:when test="string-length($BrandingIcon) &gt; 0">
                <img src="{$BrandingIcon}"/>
            </xsl:when>
          </xsl:choose>          
        </xsl:template>

</xsl:stylesheet>
</Xsl>
<SampleData>
<rss version="2.0">
   <channel>
      <title></title>
      <link>http://www.sample.com/</link>
      <description></description>
      <item>
         <title>Title of document or web page</title>
         <link></link>
         <description>This is the summary of the document or web page. The summary is generated from the original document based on matches with query terms. In some cases, the summary is a description provided by the author.</description>
      </item>
   </channel>
</rss>
</SampleData>
<DataFields>
</DataFields>
</SEARCHWC:TopFederatedResultsWebPart>


<SEARCHWC:SearchStatsWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{E84CEA10-3461-4F5B-ADCE-CDF653827F5A}" >
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
  <Title>Search Statistics</Title><FrameType>None</FrameType><Description>Displays the search statistics such as the number of results shown on the current page, total number of results and time taken to perform the search.</Description><IsIncluded>true</IsIncluded><ZoneID>BottomZone</ZoneID><PartOrder>6</PartOrder><FrameState>Normal</FrameState><Height /><Width /><AllowRemove>true</AllowRemove><AllowZoneChange>true</AllowZoneChange><AllowMinimize>true</AllowMinimize><AllowConnect>false</AllowConnect><AllowEdit>true</AllowEdit><AllowHide>true</AllowHide><IsVisible>true</IsVisible><DetailLink /><HelpLink /><HelpMode>Modeless</HelpMode><Dir>Default</Dir><PartImageSmall /><MissingAssembly>Cannot import this Web Part.</MissingAssembly><PartImageLarge /><IsIncludedFilter /><ExportControlledProperties>true</ExportControlledProperties><ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID><ID>g_e84cea10_3461_4f5b_adce_cdf653827f5a</ID><Mode xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">OneLine</Mode><DisplayNumberOfPages xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">true</DisplayNumberOfPages><DisplayTotalResults xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">true</DisplayTotalResults><DisplayResponseTime xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">false</DisplayResponseTime><DisplayDeepLatencyStats xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">false</DisplayDeepLatencyStats><ShowMessages xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">false</ShowMessages><QueryID xmlns="urn:schemas-microsoft-com:SearchStatsWebPart">Query1</QueryID></WebPart></SEARCHWC:SearchStatsWebPart><SEARCHWC:CoreResultsWebPart runat="server" HighestResultPage="1000" NoDefaultStyle="" MoreLinkLabel="View more results &#187;" QuerySideLanguage="-1" DisplayDiscoveredDefinition="True" SharedPropertiesVersion="4" ConcurrentNumberDocumentPreview="10" FrameType="None" InitialAsyncDataFetch="False" DateView="False" Scope="All List Items" UseSQLDataSourcePaging="True" ListId="00000000-0000-0000-0000-000000000000" TotalNumberDocumentPreview="10" EnableStemming="False" ShowMessages="False" FixedQuery="" DisplayRSSLink="True" EnablePhonetic="False" PropertiesToRetrieve="&lt;?xml version=&quot;1.0&quot;?&gt; &lt;Columns&gt;     &lt;Column Name=&quot;WorkId&quot;/&gt;     &lt;Column Name=&quot;Rank&quot;/&gt;     &lt;Column Name=&quot;Title&quot;/&gt;     &lt;Column Name=&quot;Author&quot;/&gt;     &lt;Column Name=&quot;Size&quot;/&gt;     &lt;Column Name=&quot;Path&quot;/&gt;     &lt;Column Name=&quot;Description&quot;/&gt;     &lt;Column Name=&quot;Write&quot;/&gt;     &lt;Column Name=&quot;SiteName&quot;/&gt;     &lt;Column Name=&quot;CollapsingStatus&quot;/&gt;     &lt;Column Name=&quot;HitHighlightedSummary&quot;/&gt;     &lt;Column Name=&quot;HitHighlightedProperties&quot;/&gt;     &lt;Column Name=&quot;ContentClass&quot;/&gt;     &lt;Column Name=&quot;IsDocument&quot;/&gt;     &lt;Column Name=&quot;PictureThumbnailURL&quot;/&gt;     &lt;Column Name=&quot;PopularSocialTags&quot;/&gt;     &lt;Column Name=&quot;PictureWidth&quot;/&gt;     &lt;Column Name=&quot;PictureHeight&quot;/&gt;     &lt;Column Name=&quot;DatePictureTaken&quot;/&gt;     &lt;Column Name=&quot;ServerRedirectedURL&quot;/&gt; 	 	&lt;Column Name=&quot;InvoiceDate&quot;/&gt; 	&lt;Column Name=&quot;DocumentName&quot;/&gt; 	&lt;Column Name=&quot;DocumentLink&quot;/&gt; 	&lt;Column Name=&quot;InvoiceType&quot;/&gt; 	&lt;Column Name=&quot;CustomerNumber&quot;/&gt; 	&lt;Column Name=&quot;CustomerName&quot;/&gt; 	&lt;Column Name=&quot;BranchName&quot;/&gt; 	&lt;Column Name=&quot;GoodNumber&quot;/&gt; 	&lt;Column Name=&quot;DocumentDate&quot;/&gt; &lt;/Columns&gt;" MissingAssembly="Cannot import this Web Part." ViewContentTypeId="" ID="g_ea037434_6626_4f0c_b059_39af9ac33d39" SpellcheckingMode="Suggest" AllowHide="True" RelevanceView="False" EnableDocumentPreviewWord="True" DateFormat="DateOnly" AutoRefreshInterval="60" ListUrl="" ViewFlag="0" AllowEdit="True" ExportMode="All" AllowRemove="True" ShowWithSampleData="False" MoreResultsText="View more results &#187;" PartImageLarge="" DisplayAlertMeLink="True" PartOrder="8" SentencesInSummary="3" SortXml="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;ResultSorting xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;   &lt;SortableFields&gt;    &lt;SortableField SupportsSortDirection=&quot;false&quot; DefaultSortDirection=&quot;Ascending&quot; IsSS14RankProfile=&quot;false&quot; IsDefault=&quot;true&quot;&gt;      &lt;FieldID&gt;default&lt;/FieldID&gt;      &lt;Display&gt;true&lt;/Display&gt;      &lt;DisplayText&gt;Relevance&lt;/DisplayText&gt;    &lt;/SortableField&gt;    &lt;SortableField SupportsSortDirection=&quot;true&quot; DefaultSortDirection=&quot;Ascending&quot; IsSS14RankProfile=&quot;false&quot; IsDefault=&quot;false&quot; Type=&quot;Datetime&quot;&gt;      &lt;FieldID&gt;write&lt;/FieldID&gt;      &lt;Display&gt;true&lt;/Display&gt;      &lt;DisplayText&gt;Date&lt;/DisplayText&gt;    &lt;/SortableField&gt;  &lt;/SortableFields&gt;&lt;/ResultSorting&gt;" IsIncluded="True" IsVisible="True" AutoRefresh="False" EnableSimilarFind="False" ListDisplayName="" AppendedQuery="" AllowMinimize="True" ConnectionID="00000000-0000-0000-0000-000000000000" ShowWindowsSearch="True" ScopeID="1" UseLocationVisualization="False" IgnoreNoise="True" FrameState="Normal" IsIncludedFilter="" DataSourceID="" ShowSearchResults="True" SuppressWebPartChrome="False" HelpMode="Modeless" ResubmitFlag="NoResubmit" HelpLink="" PreviewWindowSize="160" CharactersInUrl="90" QueryNumber="Query1" ResultsPerPage="50" AllowConnect="False" AllowZoneChange="True" Location="LocalSearchIndex" CharactersInSummary="185" DefaultSort="Relevance" IsLocationPeople="False" ExportControlledProperties="True" EnableNicknames="False" ShowActionLinks="False" DefaultRankingModelID="" DetailLink="" Dir="Default" Title="Search Core Results" Description="Displays the search results and the properties associated with them." View="Relevance" ManualRefresh="False" PartImageSmall="" AsyncRefresh="False" ShowMoreLink="False" EnableDocumentPreviewPowerPoint="True" RemoveDuplicates="True" ShowLangPicker="True" ChromeType="None" PageSize="-1" __MarkupType="vsattributemarkup" __WebPartId="{69B8F2BC-3185-41D6-B2BC-2E1A6B4E8E81}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><Xsl>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">
<xsl:output method="xml" indent="no"/>
<xsl:param name="Keyword" />
<xsl:param name="ResultsBy" />
<xsl:param name="ViewByUrl" />
<xsl:param name="ShowDropDown" />
<xsl:param name="ViewByValue" />
<xsl:param name="SortBy" />
<xsl:param name="SortOptions" />
<xsl:param name="Relevancy" />
<xsl:param name="ModifiedDate" />
<xsl:param name="DropDownOption" />
<xsl:param name="Multiply" />
<xsl:param name="PictureTaken" />
<xsl:param name="IsNoKeyword" />
<xsl:param name="IsFixedQuery" />
<xsl:param name="ShowActionLinks" />
<xsl:param name="MoreResultsText" />
<xsl:param name="MoreResultsLink" />
<xsl:param name="CollapsingStatusLink" />
<xsl:param name="CollapseDuplicatesText" />
<xsl:param name="AlertMeLink" />
<xsl:param name="AlertMeText" />
<xsl:param name="SrchRSSText" />
<xsl:param name="SrchRSSLink" />
<xsl:param name="SearchProviderText" />
<xsl:param name="SearchProviderLink" />
<xsl:param name="SearchProviderAlt"/>
<xsl:param name="ShowMessage" />
<xsl:param name="IsThisListScope" />
<xsl:param name="DisplayDiscoveredDefinition" select="True" />
<xsl:param name="NoFixedQuery" />
<xsl:param name="NoKeyword" />
<xsl:param name="ResultsNotFound" />
<xsl:param name="NoResultsSuggestion" />
<xsl:param name="NoResultsSuggestion1" />
<xsl:param name="NoResultsSuggestion2" />
<xsl:param name="NoResultsSuggestion3" />
<xsl:param name="NoResultsSuggestion4" />
<xsl:param name="NoResultsSuggestion5" />
<xsl:param name="AdditionalResources" />
<xsl:param name="AdditionalResources1" />
<xsl:param name="AdditionalResources2" />
<xsl:param name="IsSearchServer" />
<xsl:param name="Period" />
<xsl:param name="SearchHelp" />
<xsl:param name="Tags" />
<xsl:param name="Authors" />
<xsl:param name="Date" />
<xsl:param name="Size" />
<xsl:param name="ViewInBrowser" />
<xsl:param name="DefinitionIntro" />
<xsl:param name="IdPrefix" />
<xsl:param name="LangPickerHeading" />
<xsl:param name="LangPickerNodeSet" />
<xsl:param name="IsDesignMode">True</xsl:param>

<!-- When there is keywory to issue the search -->
<xsl:template name="dvt_1.noKeyword">
  <span class="srch-description2">
  <xsl:choose>
  <xsl:when test="$IsFixedQuery">
      <xsl:value-of select="$NoFixedQuery" />
  </xsl:when>
   <xsl:otherwise>
      <xsl:value-of select="$NoKeyword" />
   </xsl:otherwise>
  </xsl:choose>
  </span>       
</xsl:template>


<!-- When empty result set is returned from search -->
<xsl:template name="dvt_1.empty">
 <div class="srch-results">
  <xsl:if test="$AlertMeLink and $ShowActionLinks">  
    <span class="srch-alertme" > <a href ="{$AlertMeLink}" id="CSR_AM1" title="{$AlertMeText}"><img style="vertical-align: middle;" src="/_layouts/images/bell.gif" alt="" border="0"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$AlertMeText" /></a>
    </span>
  </xsl:if>

  <xsl:if test="string-length($SrchRSSLink) &gt; 0 and $ShowActionLinks">     
   <xsl:if test="$AlertMeLink">  
    |
   </xsl:if>
   <a type="application/rss+xml" href ="{$SrchRSSLink}" title="{$SrchRSSText}" id="SRCHRSSL"><img style="vertical-align: middle;" border="0" src="/_layouts/images/rss.gif" alt=""/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$SrchRSSText"/></a>
   <xsl:if test="string-length($SearchProviderLink) &gt; 0">  
     |  
     <a href ="{$SearchProviderLink}" title="{$SearchProviderText}" ><img style="vertical-align: middle;" border="0" src="/_layouts/images/searchfolder.png" alt=""/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><xsl:value-of select="$SearchProviderText"/></a>
   </xsl:if> 
 </xsl:if>
 </div>

  <div class="srch-results" accesskey="W">
  <span class="srch-description2" id="CSR_NO_RESULTS">
   <p>
       <xsl:value-of select="$ResultsNotFound" />
       <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
       <strong><xsl:value-of select="$Keyword" /></strong>
       <xsl:value-of select="$Period" />
   </p>
   <h3>
        <xsl:value-of select="$NoResultsSuggestion" />
   </h3>
   <ul>
        <li><xsl:value-of select="$NoResultsSuggestion1" /></li>
        <li><xsl:value-of select="$NoResultsSuggestion2" /></li>
        <li><xsl:value-of select="$NoResultsSuggestion3" /></li>
        <xsl:if test="string-length($NoResultsSuggestion4) &gt; 0"> 
            <li><xsl:value-of select="$NoResultsSuggestion4" /></li>
        </xsl:if>
        <xsl:if test="string-length($NoResultsSuggestion5) &gt; 0">
            <li><xsl:value-of select="$NoResultsSuggestion5" /></li>
        </xsl:if>
    </ul>
    <h3>
        <xsl:value-of select="$AdditionalResources" />
   </h3>
   <ul>
        <li><xsl:value-of select="$AdditionalResources1" /><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
        <xsl:choose>
          <xsl:when test="string-length($IsSearchServer) &gt; 0">
            <a href="javascript:HelpWindowKey('MSSEndUser_FindContent')" label="$SearchHelp"><xsl:value-of select="$SearchHelp" /></a> 
          </xsl:when>
          <xsl:otherwise>
            <a href="javascript:HelpWindowKey('WSSEndUser_FindContent')" label="$SearchHelp"><xsl:value-of select="$SearchHelp" /></a> 
          </xsl:otherwise>
        </xsl:choose>
        </li>
        <li><xsl:value-of select="$AdditionalResources2" /></li>
    </ul>


    
  </span>
  </div>
</xsl:template>

<!-- Main body template. Sets the Results view (Relevance or date) options -->
<xsl:template name="dvt_1.body">
  <xsl:if test="$ShowActionLinks">
  <div class="srch-sort-right2" accesskey="W"> 
        <xsl:if test="$LangPickerNodeSet and count($LangPickerNodeSet) &gt; 0">
          <xsl:value-of select="$LangPickerHeading"/>
          <select class="srch-dropdown" onchange="window.location.href=this.value" id="langpickerdd">
            <xsl:for-each select="$LangPickerNodeSet">
              <xsl:element name="option">
                <xsl:attribute name="value"><xsl:value-of select="@url"/></xsl:attribute>
                <xsl:if test="@selected = 'true'">
                  	<xsl:attribute name="selected">selected</xsl:attribute>
                </xsl:if>
                <xsl:value-of select="@title"/>
              </xsl:element>
            </xsl:for-each>        
          </select>
          <xsl:text disable-output-escaping="yes"> </xsl:text>
        </xsl:if>
<xsl:if test="$ShowDropDown = 'true'">
 <xsl:value-of select="$SortBy" /> 
<select id="dropdown" title="{$SortOptions}" onchange="PostToUrl(this.value)" class="srch-dropdown">
  <xsl:if test="$DropDownOption = '0' or $ViewByUrl != ''">
    <xsl:element name="option"> 
       <xsl:attribute name="value"><xsl:value-of select="$ViewByUrl"/></xsl:attribute>
       <xsl:if test="$DropDownOption = '0'"><xsl:attribute
name="selected">selected</xsl:attribute></xsl:if>
       <xsl:value-of select="$Relevancy"/>
    </xsl:element>
  </xsl:if>
  <xsl:if test="$DropDownOption = '1' or $ViewByUrl != ''">
         <xsl:element name="option"> 
       <xsl:attribute name="value"><xsl:value-of select="$ViewByUrl"/></xsl:attribute>
       <xsl:if test="$DropDownOption = '1'"><xsl:attribute
name="selected">selected</xsl:attribute></xsl:if>
       <xsl:value-of select="$ModifiedDate"/>
   </xsl:element>
  </xsl:if>  
  </select>  
</xsl:if>
   <xsl:if test="$AlertMeLink">  
     <xsl:if test="$ShowDropDown = 'true'">
     </xsl:if>
    <span class="srch-alertme" > <a href ="{$AlertMeLink}" id="CSR_AM2" title="{$AlertMeText}"><img style="vertical-align: middle;" src="/_layouts/images/bell.gif" alt="" border="0"/></a><xsl:text disable-output-escaping="yes"> </xsl:text>
   </span>
   </xsl:if>
   <xsl:if test="string-length($SrchRSSLink) &gt; 0">  
     
     <a type="application/rss+xml" href ="{$SrchRSSLink}" title="{$SrchRSSText}" id="SRCHRSSL"><img style="vertical-align: middle;" border="0" src="/_layouts/images/rss.gif" alt=""/></a><xsl:text disable-output-escaping="yes"> </xsl:text>
   </xsl:if>
   <xsl:if test="string-length($SearchProviderLink) &gt; 0">    
     <a href ="{$SearchProviderLink}" title="{$SearchProviderAlt}" ><img style="vertical-align: middle;" border="0" src="/_layouts/images/searchfolder.png" alt=""/></a>
   </xsl:if>
  </div>
  </xsl:if>
  <div class="srch-results" accesskey="W">
 	<div style="width:700px; background-color:#EEE;">
		<span class="heading" style="width:145px; padding-left:5px;">Document</span>
		<span class="heading" style="width:100px;">Document Date</span>
		<span class="heading" style="width:250px;">Customer Name</span>
		<span class="heading" style="width:200px;">Customer Number</span>
	</div>
  <xsl:apply-templates />
  </div>  
  <xsl:call-template name="DisplayMoreResultsAnchor" />
</xsl:template><!-- This template is called for each result -->
<xsl:template match="TotalResults">
</xsl:template>
<xsl:template match="NumberOfResults">
</xsl:template>

<xsl:template match="Result"> 
  <xsl:variable name="id" select="id"/>
  <xsl:variable name="currentId" select="concat($IdPrefix,$id)"/>
  <xsl:variable name="url" select="url"/>
  
<xsl:choose>
<xsl:when test="string-length(picturethumbnailurl) &gt; 0 and contentclass[. = 'STS_ListItem_PictureLibrary']">
  <div style=" padding-top: 2px; padding-bottom: 2px;">
   <div class="srch-picture1">
      <img src="/_layouts/images/imageresult_16x16.png" />
   </div>
   <div class="srch-picture2">
      <img class="srch-picture" src="{picturethumbnailurl}" alt="" />
   </div>
      <span><ul class="srch-picturetext">
      <li class="srch-Title2 srch-Title5">
         <a href="{$url}" id="{concat('CSR_',$id)}" title="{title}">
         <xsl:choose>
            <xsl:when test="hithighlightedproperties/HHTitle[. != '']">
              <xsl:call-template name="HitHighlighting">
                 <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> 
              </xsl:call-template>   
            </xsl:when>
            <xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> 
         </xsl:choose>
         </a>
      </li>

       <li>
           <xsl:if test="string-length(picturewidth) &gt; 0 and string-length(pictureheight) &gt; 0">
              <xsl:value-of select="$Size" />
              <xsl:value-of select="picturewidth" />
		      <xsl:value-of select="$Multiply" />
		      <xsl:value-of select="pictureheight" />
            
	        <xsl:if test="string-length(size) &gt; 0">       
               <xsl:if test="number(size) &gt; 0">
                   <xsl:text disable-output-escaping="yes"> </xsl:text>
                  <xsl:choose>
                      <xsl:when test="round(size div 1024) &lt; 1"><xsl:value-of select="size" /> Bytes</xsl:when>
                      <xsl:when test="round(size div (1024 *1024)) &lt; 1"><xsl:value-of select="round(size div 1024)" />KB</xsl:when>
                      <xsl:otherwise><xsl:value-of select="round(size div (1024 * 1024))"/>MB</xsl:otherwise>
                  </xsl:choose>    
               </xsl:if>
            </xsl:if>
            </xsl:if>

            <xsl:if test="string-length(datepicturetaken) &gt; 0">
                <xsl:text disable-output-escaping="yes"> </xsl:text>
                <xsl:value-of select="$PictureTaken" />
                <xsl:value-of select="datepicturetaken" />
             </xsl:if>

             <xsl:if test="string-length(author) &gt; 0">   
                 <xsl:text disable-output-escaping="yes"> </xsl:text>
                 <xsl:value-of select="$Authors" />
                 <xsl:value-of select="author" /> 
             </xsl:if>

             <xsl:if test="string-length(write) &gt; 0">   
                 <xsl:text disable-output-escaping="yes"> </xsl:text>
                 <xsl:value-of select="$Date" />
                 <xsl:value-of select="write" /> 
             </xsl:if> 

          </li>
   
          <li>  
             <span class="srch-URL2" id="{concat($currentId,'_Url')}">     
                  <xsl:choose>
        <xsl:when test="hithighlightedproperties/HHUrl[. != '']">
           <xsl:call-template name="HitHighlighting">
              <xsl:with-param name="hh" select="hithighlightedproperties/HHUrl" /> 
           </xsl:call-template> 
        </xsl:when>
       <xsl:otherwise>
             <xsl:value-of select="url"/>
      </xsl:otherwise> 
      </xsl:choose>
                
             </span>           	 
          </li></ul>
       </span>
     </div>
     <div class="srch-clear">
       <img alt="" src="/_layouts/images/blank.gif" />
     </div>    
</xsl:when>
<xsl:otherwise>
  <div class="srch-Icon" id="{concat($currentId,'_Icon')}"> 
        <img align="absmiddle" src="{imageurl}" border="0" alt="{imageurl/@imageurldescription}" />
  </div>
  <div class="srch-Title2">
  <div class="srch-Title3">
    <!-- links with the file scheme only work in ie if they are unescaped. For  &#xA;         this reason here we will render the link using disable-output-escaping if the url &#xA;         begins with file.-->
		 <!--&#xA;    <xsl:choose>&#xA;      <xsl:when test="substring($url,1,5) = 'file:' and $IsDesignMode = 'False'">&#xA;        <xsl:text     disable-output-escaping="yes">&lt;a href="</xsl:text>&#xA;        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($url)" />&#xA;        <xsl:text     disable-output-escaping="yes">" id="</xsl:text>&#xA;        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(concat($currentId,'_Title'))" />&#xA;        <xsl:text     disable-output-escaping="yes">" title="</xsl:text>&#xA;        <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(title)" />&#xA;        <xsl:text     disable-output-escaping="yes">"&gt;</xsl:text>&#xA;        <xsl:choose>&#xA;         <xsl:when test="hithighlightedproperties/HHTitle[. != '']">&#xA;          <xsl:call-template name="HitHighlighting">&#xA;           <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> &#xA;          </xsl:call-template>   &#xA;         </xsl:when>&#xA;         <xsl:otherwise><xsl:value-of select="srwrt:HtmlEncode(title)"/></xsl:otherwise> &#xA;        </xsl:choose>&#xA;        <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>&#xA;      </xsl:when>&#xA;      <xsl:otherwise>&#xA;        <a  id="{concat($currentId,'_Title')}">&#xA;          <xsl:attribute name="href">&#xA;            <xsl:value-of  select="$url"/>&#xA;          </xsl:attribute>&#xA;          <xsl:attribute name="title">&#xA;            <xsl:value-of select="title"/>&#xA;          </xsl:attribute>&#xA;        <xsl:choose>&#xA;         <xsl:when test="hithighlightedproperties/HHTitle[. != '']">&#xA;          <xsl:call-template name="HitHighlighting">&#xA;           <xsl:with-param name="hh" select="hithighlightedproperties/HHTitle" /> &#xA;          </xsl:call-template>   &#xA;         </xsl:when>&#xA;         <xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> &#xA;        </xsl:choose>&#xA;        </a>&#xA;      </xsl:otherwise>&#xA;    </xsl:choose>&#xA;	-->
	<img alt="" src="blank.gif" height="0" width="0"/>
  </div>
  </div>

   <div class="srch-Description2">
   
    <xsl:choose>
    <xsl:when test="hithighlightedsummary[. != '']">
         <xsl:call-template name="HitHighlighting">
           <xsl:with-param name="hh" select="hithighlightedsummary" /> 
         </xsl:call-template> 
    </xsl:when>   
     <xsl:when test="description[. != '']">
        <xsl:value-of select="description"/>     
     </xsl:when> 
     <xsl:otherwise>
      <img alt="" src="/_layouts/images/blank.gif" height="0" width="0"/>
     </xsl:otherwise>     
    </xsl:choose>
   </div >
    

    <div class="srch-Metadata2">   

     <img style="display:none;" alt="" src="blank.gif"/>
		<div class="search-result-row">
			<div class="search-results-field-container" style="width:150px;">
				<span>
					<a style="font-size:1.1em; font-weight:bold;" target="_blank">
						<xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
						<img alt="Open PDF" src="images/pdf_icon.gif" style="border:none; height:12px; width:12px; margin-right:5px;"/> Open
					</a>
				</span>
			</div>
			<div class="search-results-field-container" style="width:100px;">
				<span><xsl:value-of select="documentdate"/></span>
			</div>
			<div class="search-results-field-container" style="width:250px; overflow:hidden;">
				<span><xsl:value-of select="customername"/></span>
			</div>
			<div class="search-results-field-container" style="width:200px;overflow:hidden;">
				<span><xsl:value-of select="customernumber"/></span>
			</div>
			
			<!--<div style="clear:both;"></div>-->
		</div>			
    </div>
	
    <p class="srch-Metadata1">
    <span><span class="srch-URL2" id="{concat($currentId,'_Url')}">     

      <xsl:choose>
        <xsl:when test="hithighlightedproperties/HHUrl[. != '']">
           <xsl:call-template name="HitHighlighting">
              <xsl:with-param name="hh" select="hithighlightedproperties/HHUrl" /> 
           </xsl:call-template> 
        </xsl:when>
       <xsl:otherwise>
           <xsl:value-of select="url"/>
       </xsl:otherwise> 
      </xsl:choose>
      </span>
     <xsl:call-template name="DisplayCollapsingStatusLink">
        <xsl:with-param name="status" select="collapsingstatus"/>
        <xsl:with-param name="workid" select="workid"/>
        <xsl:with-param name="id" select="concat($currentId,'_CS')"/>
     </xsl:call-template>        
      <xsl:call-template name="ViewInBrowser">
      <xsl:with-param name="browserlink" select="serverredirectedurl" />
      <xsl:with-param name="currentId" select="$currentId" />
    </xsl:call-template>           
    </span>                
    </p>
   </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template name="HitHighlighting"> 
 <xsl:param name="hh" /> 
 <xsl:apply-templates select="$hh"/> 
</xsl:template>

<xsl:template match="ddd"> 
  …  
</xsl:template> 
<xsl:template match="c0"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c1"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c2"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c3"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c4"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c5"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c6"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c7"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c8"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 
<xsl:template match="c9"> 
    <strong><xsl:value-of select="."/></strong>
</xsl:template> 

<xsl:template name="DisplayAuthors">
  <xsl:param name="author" /> 
  <xsl:if test="string-length($author) &gt; 0"> 
   <xsl:value-of select="$Authors" />
   <xsl:choose>
   <xsl:when test="string-length(author_multival) &gt; 0"> 
   <xsl:for-each select="author_multival">
    <xsl:variable name="p" select="position()"/>
    <xsl:if test="$p &gt; 1">
       	<xsl:text disable-output-escaping="yes">,</xsl:text> 
       	<xsl:text disable-output-escaping="yes"> </xsl:text> 
    </xsl:if>
    <xsl:value-of select="."/>
  </xsl:for-each>
  </xsl:when>
  <xsl:otherwise>
   <xsl:value-of select="author"/>      
  </xsl:otherwise>
  </xsl:choose>
  </xsl:if>
</xsl:template>

<xsl:template name="DisplayDate">
  <xsl:param name="write" /> 
  <xsl:if test="string-length($write) &gt; 0"> 
   <xsl:if test="string-length(author) &gt; 0">
   <xsl:text disable-output-escaping="yes"> </xsl:text> 
   </xsl:if>    
   <xsl:value-of select="$Date" />
   <xsl:value-of select="write"/>      
  </xsl:if>
</xsl:template>


<!-- The size attribute for each result is prepared here -->
<xsl:template name="DisplaySize">
  <xsl:param name="size" /> 
  <xsl:if test="string-length($size) &gt; 0">        
   <xsl:if test="number($size) &gt; 0">
    <xsl:if test="string-length(write) &gt; 0 or string-length(author) &gt; 0">    
    <xsl:text disable-output-escaping="yes"> </xsl:text>
    </xsl:if>
    <xsl:value-of select="$Size" />
    <xsl:choose>
     <xsl:when test="round($size div 1024) &lt; 1"><xsl:value-of select="$size" /> Bytes</xsl:when>
     <xsl:when test="round($size div (1024 *1024)) &lt; 1"><xsl:value-of select="round($size div 1024)" />KB</xsl:when>
     <xsl:otherwise><xsl:value-of select="round($size div (1024 * 1024))"/>MB</xsl:otherwise>
    </xsl:choose>    
   </xsl:if>
  </xsl:if>
</xsl:template>

<xsl:template name="ViewInBrowser">
  <xsl:param name="browserlink" />
  <xsl:param name="currentId" />
  <xsl:if test="string-length($browserlink) &gt; 0">
    <span class="srch-urllink"><a href="{$browserlink}" id="{concat($currentId,'_VBlink')}">
      <xsl:value-of select="$ViewInBrowser" />
    </a></span>
  </xsl:if>
</xsl:template>

<!-- A generic template to display string with non 0 string length (used for author and lastmodified time -->
<xsl:template name="DisplayString">
  <xsl:param name="str" />
  <xsl:if test='string-length($str) &gt; 0'>   
   - 
   <xsl:value-of select="$str" /> 
  </xsl:if>
</xsl:template>

<!-- document collapsing link setup -->
<xsl:template name="DisplayCollapsingStatusLink">
    <xsl:param name="status"/>
    <xsl:param name="workid"/>
    <xsl:param name="id"/>
    <xsl:if test="$CollapsingStatusLink">
      <xsl:choose>
          <xsl:when test="$status=1">
              <xsl:variable name="CollapsingStatusHref" select="concat(substring-before($CollapsingStatusLink, '$$COLLAPSE_PARAM$$'), 'duplicates:&quot;', $workid, '&quot;', substring-after($CollapsingStatusLink, '$$COLLAPSE_PARAM$$'))"/>
              <span class="srch-urllink"><a href="{$CollapsingStatusHref}" id="$id" title="{$CollapseDuplicatesText}">
              <xsl:value-of select="$CollapseDuplicatesText"/>
              </a></span>
          </xsl:when>
      </xsl:choose>
    </xsl:if>
</xsl:template><!-- The "view more results" for fixed query -->
<xsl:template name="DisplayMoreResultsAnchor">
  <xsl:if test="$MoreResultsLink">
   <a href="{$MoreResultsLink}" id="{concat($IdPrefix,'_MRL')}">
    <xsl:value-of select="$MoreResultsText"/> 
    </a>
   </xsl:if>
</xsl:template>

<xsl:template match="All_Results/DiscoveredDefinitions">
  <xsl:variable name="FoundIn" select="DDFoundIn" />
  <xsl:variable name="DDSearchTerm" select="DDSearchTerm" />
  <xsl:if test="$DisplayDiscoveredDefinition = 'True' and string-length($DDSearchTerm) &gt; 0">
    <script language="javascript">
      function ToggleDefinitionSelection()
      {
        var selection = document.getElementById("definitionSelection");
        if (selection.style.display == "none")
        {
          selection.style.display = "inline";
        }
        else
        {
          selection.style.display = "none";
        }
      }
    </script> 
    <div class="srch-Description2 srch-definition2">
      <a href="javascript:ToggleDefinitionSelection();" id="{concat($IdPrefix,'1_DEF')}" mss_definition="true">
        <xsl:value-of select="$DefinitionIntro" /><strong><xsl:value-of select="$DDSearchTerm"/></strong></a>
      <div id="definitionSelection" class="srch-Description2" style="display:none;">
        <xsl:for-each select="DDefinitions/DDefinition">
          <br/>
          <xsl:variable name="DDUrl" select="DDUrl" />
          <img style="display:inline" alt="" src="/_layouts/images/discovered_definitions_bullet.png" />
          <xsl:value-of select="DDStart"/>
          <strong>
            <xsl:value-of select="DDBold"/>
          </strong>
          <xsl:value-of select="DDEnd"/>
          <br/>
          <span class="srch-definition">
          <xsl:value-of select="$FoundIn"/>
          <xsl:text disable-output-escaping="yes">&#160;</xsl:text>
          <a href="{$DDUrl}">
          <xsl:value-of select="DDTitle"/> 
          </a>
          </span>
        </xsl:for-each>
      </div>
    </div>
  </xsl:if>   
</xsl:template>

<!-- XSL transformation starts here -->
<xsl:template match="/" xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">
    <style>
		.srch-results{
			max-width: 900px;
			width: 900px;
			padding-left:0px;
		}
		.search-results-row{
			display: block;
			border: 1px solid #DDD;
		}
		.search-results-link-container{
			display: inline-block;
			float: left;
			width: 150px;
		}
		.search-results-field-container{
			display: inline-block;
			float: left;
		}
		.search-results-field-container span{
			display: block;
			border-bottom: 1px solid #EEE;
			height: 20px;
			line-height: 20px;
		}
		span.heading{
			display: inline-block;
			padding: 5px 0px;
		}
		.srch-Description2, .srch-Metadata1, .srch-Icon{
			display: none;
		}
		.srch-Title3{
			margin-top: -3px;
		}
		.srch-Metadata2{
			padding-bottom:20px;
		}
		.srch-Metadata1, .srch-Metadata2{
			margin-left: 0px;
		}
		#s4-leftpanel-content{
			display:none;
		}
		.srchctr_leftcell{
			display:none;
		}
		 </style> 

  <xsl:if test="$AlertMeLink">  
   <input type="hidden" name="P_Query" />
   <input type="hidden" name="P_LastNotificationTime" />
  </xsl:if>
  <xsl:choose>
   <xsl:when test="$IsNoKeyword = 'True'" >
    <xsl:call-template name="dvt_1.noKeyword" />
   </xsl:when>
   <xsl:when test="$ShowMessage = 'True'">
     <xsl:call-template name="dvt_1.empty" />
   </xsl:when>
   <xsl:otherwise>
    <xsl:call-template name="dvt_1.body"/>      
   </xsl:otherwise>
  </xsl:choose>
</xsl:template> 

 

<!-- End of Stylesheet -->
</xsl:stylesheet></Xsl>
<SampleData>
<All_Results>  <Result>    <workid>1</workid>    <rank>222</rank>    <title>Title of document or web page</title>    <author>Author of document or web page</author>    <size>1025</size>    <sitename>http://www.sample.com</sitename>    <url>http://www.sample.com/folder/document.aspx</url>    <imageurl>/_layouts/images/aspx16.gif</imageurl>    <description>This is the summary of the document or web page. The summary is generated from the original document based on matches with query terms. In some cases, the summary is a description provided by the author.</description>    <write>December 26, 2004</write>  </Result></All_Results></SampleData>
<DataFields>
</DataFields>
<ParameterBindings>
</ParameterBindings>
<SelectColumns>
<?xml version="1.0"?> <Columns>     <Column Name="WorkId"/>     <Column Name="Rank"/>     <Column Name="Title"/>     <Column Name="Author"/>     <Column Name="Size"/>     <Column Name="Path"/>     <Column Name="Description"/>     <Column Name="Write"/>     <Column Name="SiteName"/>     <Column Name="CollapsingStatus"/>     <Column Name="HitHighlightedSummary"/>     <Column Name="HitHighlightedProperties"/>     <Column Name="ContentClass"/>     <Column Name="IsDocument"/>     <Column Name="PictureThumbnailURL"/>     <Column Name="PopularSocialTags"/>     <Column Name="PictureWidth"/>     <Column Name="PictureHeight"/>     <Column Name="DatePictureTaken"/>     <Column Name="ServerRedirectedURL"/> 	 	<Column Name="InvoiceDate"/> 	<Column Name="DocumentName"/> 	<Column Name="DocumentLink"/> 	<Column Name="InvoiceType"/> 	<Column Name="CustomerNumber"/> 	<Column Name="CustomerName"/> 	<Column Name="BranchName"/> 	<Column Name="GoodNumber"/> 	<Column Name="DocumentDate"/> </Columns></SelectColumns>
</SEARCHWC:CoreResultsWebPart><SEARCHWC:SearchPagingWebPart runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{D246CD27-2E28-4192-84EB-BEE0E5CCB51B}" ><WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2"><Title>Search Paging</Title><FrameType>None</FrameType><Description>Display links for navigating pages containing search results.</Description><IsIncluded>true</IsIncluded><ZoneID>BottomZone</ZoneID><PartOrder>10</PartOrder><FrameState>Normal</FrameState><Height /><Width /><AllowRemove>true</AllowRemove><AllowZoneChange>true</AllowZoneChange><AllowMinimize>true</AllowMinimize><AllowConnect>true</AllowConnect><AllowEdit>true</AllowEdit><AllowHide>true</AllowHide><IsVisible>true</IsVisible><DetailLink /><HelpLink /><HelpMode>Modeless</HelpMode><Dir>Default</Dir><PartImageSmall /><MissingAssembly>Cannot import this Web Part.</MissingAssembly><PartImageLarge /><IsIncludedFilter /><ExportControlledProperties>true</ExportControlledProperties><ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID><ID>g_d246cd27_2e28_4192_84eb_bee0e5ccb51b</ID><MaxBeforeCurrent xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">4</MaxBeforeCurrent><MaxAfterCurrent xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">3</MaxAfterCurrent><PreviousLinkUrl xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">/_layouts/images/prev.png</PreviousLinkUrl><PreviousLinkRTL xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">/_layouts/images/next.png</PreviousLinkRTL><NextLinkUrl xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">/_layouts/images/next.png</NextLinkUrl><NextLinkRTL xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">/_layouts/images/prev.png</NextLinkRTL><ShowMessages xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">false</ShowMessages><QueryID xmlns="urn:schemas-microsoft-com:SearchPagingWebPart">Query1</QueryID></WebPart></SEARCHWC:SearchPagingWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
              <SharePoint:UIVersionedContent UIVersion="3" runat="server">
              <ContentTemplate>                        
	                 </td>
                   </tr>
				  </table>
				</td>

			     <td><img src="blank.gif" width="10" height="1" alt=""></td>                
                 <td id="RightCell" width="25%" valign="top">
              </ContentTemplate>
              </SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>                        
	                  </div>
                </td>
				<td class="srchctr_rightcell" id="RightCell" rowspan="1">
                                   <div class="srch-federationarea"> 
</ContentTemplate>
</SharePoint:UIVersionedContent>
                 <WebPartPages:WebPartZone runat="server" AllowPersonalization="false" title="<%$Resources:Microsoft.Office.Server.Search,LayoutPageZone_RightZone%>" id="RightZone" orientation="Vertical" QuickAdd-GroupNames="Search" QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>
<SEARCHWC:QuerySuggestionsWebPart runat="server" NoDefaultStyle="" MoreLinkLabel="View more results &#187;" FrameType="None" InitialAsyncDataFetch="False" UseSQLDataSourcePaging="True" ListId="00000000-0000-0000-0000-000000000000" QueryUrl="" EnableStemming="False" ShowMessages="False" EnablePhonetic="False" MissingAssembly="Cannot import this Web Part." ViewContentTypeId="" LoadAsynchronously="True" ID="g_ff2f9d4a_3556_4487_ac3e_4a8a2b5e772d" AllowRemove="True" AllowHide="True" LoadingImageToolTip="Loading query suggestions." DateFormat="DateOnly" AutoRefreshInterval="60" ListUrl="" ViewFlag="0" AllowEdit="True" ExportMode="All" ShowWithSampleData="False" LoadingImageUrl="/_layouts/images/gears_an.gif" PartImageLarge="" PartOrder="2" IsLocationPeople="False" IsIncluded="True" IsVisible="True" ListDisplayName="" AllowMinimize="True" ConnectionID="00000000-0000-0000-0000-000000000000" ResultsPerPage="5" UseLocationVisualization="True" IgnoreNoise="True" FrameState="Normal" IsIncludedFilter="" DataSourceID="" SuppressWebPartChrome="False" HelpMode="Modeless" HelpLink="" CharactersInUrl="25" AutoRefresh="False" AllowConnect="False" AllowZoneChange="True" CharactersInSummary="185" ShowLoadingImage="False" ExportControlledProperties="True" EnableNicknames="False" DefaultRankingModelID="" DetailLink="" Dir="Default" Title="Related Queries" Description="This webpart displays related queries to a user query." ManualRefresh="False" PartImageSmall="" AsyncRefresh="False" ShowMoreLink="False" RemoveDuplicates="True" ChromeType="None" PageSize="-1" __MarkupType="vsattributemarkup" __WebPartId="{94F1AA1C-1B58-47E7-AA1D-96E0AB3BCF31}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
               version="1.0" exclude-result-prefixes="xsl ddwrt msxsl srwrt" 
               xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
               xmlns:srwrt="http://schemas.microsoft.com/WebParts/v3/searchresults/runtime"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
               xmlns:atom2="http://purl.org/atom/ns#" xmlns:ddwrt2="urn:frontpage:internal">
               <xsl:output method="xml" indent="no"/>

    <xsl:param name="ResultsPerPage">3</xsl:param>
    <xsl:param name="IsDesignMode">True</xsl:param>
    <xsl:param name="UrlMaxLength">50</xsl:param>
    <xsl:param name="SummaryMaxLength">300</xsl:param>
    <xsl:param name="ShowMoreLink">true</xsl:param>
    <xsl:param name="MoreLink"></xsl:param>
    <xsl:param name="MoreLinkLabel"></xsl:param>
    <xsl:param name="IdPrefix"></xsl:param>
    <xsl:param name="WebpartTitle"></xsl:param>
    <xsl:param name="DefaultIconDescription"></xsl:param>
    <xsl:param name="BrandingIcon"></xsl:param>
    <xsl:param name="IsFirstPage">true</xsl:param>
    <xsl:param name="RecommendationText"></xsl:param>
    <xsl:param name="ShowSeperationLine">False</xsl:param>

        <xsl:template match="rss" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rss1="http://purl.org/rss/1.0/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom2="http://purl.org/atom/ns#">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'rss'"/>
            </xsl:call-template>
        </xsl:template>
        		
        <xsl:template match="rdf:RDF">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'rdf'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template match="atom:feed">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'atom'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template match="atom2:feed">
            <xsl:call-template name="MainTemplate">
               <xsl:with-param name="Type" select="'atom2'"/>
            </xsl:call-template>
        </xsl:template>
        <xsl:template name="GetLink" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="link"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:link"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:link/@href"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:link/@href"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="link"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetTitle" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="title"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:title"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="title"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetDescription" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
            <xsl:param name="Type"/>
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="description"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:description"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:summary"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:summary"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="description"/>                     
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
        <xsl:template name="GetItemIconDescription">
            <xsl:choose>
               <xsl:when test="$ShowSeperationLine= 'True'">
                  <xsl:value-of select="$RecommendationText" />
               </xsl:when>
               <xsl:otherwise><xsl:value-of select="$DefaultIconDescription"/></xsl:otherwise>
            </xsl:choose>
        </xsl:template>

        <xsl:template name="GetItemIcon">
            <xsl:value-of select="string('/_layouts/images/results_bullet.png')" />
        </xsl:template>

        <xsl:template name="MainTemplate">
            <xsl:param name="Type"/>
            <xsl:variable name="Rows" select="channel/item|rss1:item|atom:entry|atom2:entry" />
            <xsl:variable name="RowCount" select="count($Rows)"/>
            <xsl:variable name="ChannelTitle">
            <xsl:choose>
                <xsl:when test="$Type = 'rss'">
                     <xsl:value-of select="channel/title"/>
                </xsl:when>
                <xsl:when test="$Type = 'rdf'">
                     <xsl:value-of select="rss1:channel/rss1:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom'">
                     <xsl:value-of select="atom:title"/>
                </xsl:when>
                <xsl:when test="$Type = 'atom2'">
                     <xsl:value-of select="atom2:title"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="channel/title"/>                     
                </xsl:otherwise>
            </xsl:choose>
            </xsl:variable>
            <xsl:if test="($RowCount &gt; 0)">
               <div class="ms-searchsummarymain" >            
                  <div class="ms-searchChannelTitle" accesskey="W">
                        <span class="ms-searchChannelTitle">
                            <xsl:call-template name="GetBrandingImage" />
                            <xsl:value-of select="$ChannelTitle"/>
                        </span>
                  </div>          
                  <xsl:call-template name="MainTemplate.body">
                    <xsl:with-param name="Rows" select="$Rows"/>
                    <xsl:with-param name="RowCount" select="count($Rows)"/>
                    <xsl:with-param name="ShowIcon" select="false()"/>
                    <xsl:with-param name="ShowUrl" select="true()"/>
                    <xsl:with-param name="StyleClassPrefix" select="string('ms-searchsummary')"/>
                    <xsl:with-param name="Type" select="$Type"/>
                  </xsl:call-template>
                  <xsl:call-template name="MoreLinkTemplate" >
                     <xsl:with-param name="StyleClassPrefix" select="string('ms-searchsummary')"/>
                  </xsl:call-template>
                  <xsl:call-template name="SeperationLineTemplate" >
                  </xsl:call-template>
               </div>
            </xsl:if>
        </xsl:template>

        		

        <xsl:template name="MainTemplate.body">
            <xsl:param name="Rows"/>
            <xsl:param name="RowCount"/>
            <xsl:param name="ShowIcon"/>
            <xsl:param name="ShowUrl"/>
            <xsl:param name="StyleClassPrefix"/>
            <xsl:param name="Type"/>
            <xsl:variable name="BodyClass" select="concat($StyleClassPrefix,'body')" />
            <div class="{$BodyClass}">
              <xsl:for-each select="$Rows">
                <xsl:variable name="CurPosition" select="position()" />
                <xsl:variable name="CurrentId" select="concat($IdPrefix,$CurPosition)" />
                <xsl:variable name="link">
                   	<xsl:call-template name="GetLink">
                      	<xsl:with-param name="Type" select="$Type"/>
                   	</xsl:call-template>
                </xsl:variable>
                <xsl:variable name="title">
                   	<xsl:call-template name="GetTitle">
                      	<xsl:with-param name="Type" select="$Type"/>
                   	</xsl:call-template>
                </xsl:variable>
                <xsl:if test="($CurPosition &lt;= $ResultsPerPage)">
                   	<xsl:variable name="TitleClass" select="concat($StyleClassPrefix,'Title')" />
                    <div class="{$TitleClass}" >
                      	<xsl:variable name="SafeHtml">
                        	<xsl:call-template name="GetSafeHtml">
                            	<xsl:with-param name="Html" select="$title"/>
                        	</xsl:call-template>
                      </xsl:variable>
                         <xsl:if test="$ShowIcon = true()">
                            <xsl:variable name="itemIconUrl">
                               	<xsl:call-template name="GetItemIcon" />
                            </xsl:variable>
                            <xsl:variable name="itemIconDescription">
                               	<xsl:call-template name="GetItemIconDescription" />
                            </xsl:variable>
                           <img src="{$itemIconUrl}" title="{$itemIconDescription}"/>
                       </xsl:if>
                      	<xsl:choose>
                        	<xsl:when test="substring($link,1,5) = 'file:' and $IsDesignMode = 'False'">
                          		<xsl:text     disable-output-escaping="yes">&lt;a href=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($link)" />
                          		<xsl:text     disable-output-escaping="yes">&quot; id=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode(concat($CurrentId, '_Title'))" />
                          		<xsl:text     disable-output-escaping="yes">&quot; class=&quot;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="srwrt:HtmlAttributeEncode($TitleClass)" />
                          		<xsl:text     disable-output-escaping="yes">&quot;&gt;</xsl:text>
                          <xsl:value-of disable-output-escaping="yes" select="$SafeHtml"/>
                          		<xsl:text     disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
                        </xsl:when>
                        	<xsl:otherwise>
                          <a id="{concat($CurrentId, '_Title')}" class="{$TitleClass}" href="{ddwrt:EnsureAllowedProtocol(string($link))}" >
                            <xsl:value-of select="$SafeHtml" disable-output-escaping="yes"/>
                          </a> 
                        </xsl:otherwise>
                      	</xsl:choose>  
                    </div>
                    <xsl:call-template name="MainTemplate.description">
                       	<xsl:with-param name="CurrentId" select="$CurrentId"/>
                       	<xsl:with-param name="Link" select="$link"/>
                       	<xsl:with-param name="ShowUrl" select="$ShowUrl"/>
                       	<xsl:with-param name="StyleClassPrefix" select="$StyleClassPrefix"/>
                       	<xsl:with-param name="Type" select="$Type"/>
                    </xsl:call-template>
                </xsl:if>
              </xsl:for-each>
            </div>
        </xsl:template>
        		
        <xsl:template name="SeperationLineTemplate" >
           <xsl:if test="$ShowSeperationLine= 'True'">
           <div class="ms-topanswerseperation"><div class="ms-topanswerseperation2"><img src="/_layouts/images/blank.gif" /></div></div>   
           </xsl:if>    
        </xsl:template>
	    <xsl:template name="MainTemplate.description">
            <xsl:param name="CurrentId"/>
            <xsl:param name="Link"/>
            <xsl:param name="ShowUrl"/>
            <xsl:param name="StyleClassPrefix"/>
            <xsl:param name="Type"/>
            
            <xsl:variable name="DivId" select="concat($CurrentId,'_d')" />
            <xsl:variable name="LinkId" select="concat($CurrentId,'_Url')" />
            <xsl:variable name="DescOuterClass" select="concat($StyleClassPrefix,'descouter')" />
            <xsl:variable name="description">
               <xsl:call-template name="GetDescription">
                  <xsl:with-param name="Type" select="$Type"/>
               </xsl:call-template>
            </xsl:variable>
            <xsl:if test="string-length($description) &gt; 0">
                <div id="{$DivId}" class="{$DescOuterClass}">
                    <xsl:variable name="DescLongText">
                        <xsl:call-template name="GetPlainTextFromHtml">
                            <xsl:with-param name="Html" select="$description"/>
                        </xsl:call-template>
                    </xsl:variable>
                    <xsl:variable name="DescText">
                       <xsl:call-template name="TrimIfGreaterThanMax">
                          <xsl:with-param name="Source" select="$DescLongText"/>
                          <xsl:with-param name="MaxLength" select="$SummaryMaxLength"/>
                       </xsl:call-template>
                    </xsl:variable>
                    <xsl:variable name="DescClass" select="concat($StyleClassPrefix,'desc')" />
                    <div class = "{$DescClass}">
                     <xsl:value-of select="$DescText"/>
                    </div>
                    <xsl:if test="$ShowUrl = true()">
                       <xsl:variable name="UrlClass" select="concat($StyleClassPrefix,'Url')" />

		               <div class="{$UrlClass}" id="{LinkId}">

                       <xsl:variable name="ShortLink">
                          <xsl:call-template name="TrimIfGreaterThanMax">
                             <xsl:with-param name="Source" select="$Link"/>
                             <xsl:with-param name="MaxLength" select="$UrlMaxLength"/>
                          </xsl:call-template>
                       </xsl:variable>
                       <xsl:value-of select="$ShortLink"/>
                       </div>
                    </xsl:if>
                </div>
            </xsl:if>
        </xsl:template>
        		
        <xsl:template name="MoreLinkTemplate">
          <xsl:param name="StyleClassPrefix"/>
          <xsl:variable name="MoreLinkClass" select="concat($StyleClassPrefix,'morelink')" />
          <xsl:if test="$ShowMoreLink = true() and string-length($MoreLink) &gt; 0">
             <div class="{$MoreLinkClass}">
                <a href="{ddwrt:EnsureAllowedProtocol(string($MoreLink))}">
                   <xsl:value-of select="$MoreLinkLabel"/>
                </a>
             </div>
          </xsl:if>
        </xsl:template>
        <xsl:template name="GetSafeHtml">
          <xsl:param name="Html"/>
            <xsl:choose>
                <xsl:when test="$IsDesignMode = 'True'">
                     <xsl:value-of select="$Html"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="srwrt:MakeSafe($Html)"/>                     
                </xsl:otherwise>
            </xsl:choose>
         </xsl:template>
        <xsl:template name="GetPlainTextFromHtml">
          <xsl:param name="Html"/>
            <xsl:choose>
                <xsl:when test="$IsDesignMode = 'True'">
                     <xsl:value-of select="$Html"/>
                </xsl:when>
                <xsl:otherwise>
                     <xsl:value-of select="srwrt:GetPlainTextFromHtml($Html)"/>                     
                </xsl:otherwise>
            </xsl:choose>
         </xsl:template>
        <xsl:template name="TrimIfGreaterThanMax">
          <xsl:param name="Source"/>
          <xsl:param name="MaxLength"/>
          <xsl:choose>
            <xsl:when test="string-length($Source) &gt; $MaxLength">
              <xsl:value-of select="substring($Source, 1, $MaxLength)"/>...
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="$Source"/>
            </xsl:otherwise>
          </xsl:choose>
        </xsl:template>

        <xsl:template name="GetBrandingImage">
          <xsl:if test="string-length($BrandingIcon) &gt; 0 and $BrandingIcon != '/_layouts/images/blank.gif'">
             <img src="{$BrandingIcon}"/>
          </xsl:if>
        </xsl:template>
        

</xsl:stylesheet>
</Xsl>
<SampleData>
<rss version="2.0">
   <channel>
      <title></title>
      <link>http://www.sample.com/</link>
      <description></description>
      <item>
         <title>Title of document or web page</title>
         <link></link>
         <description></description>
      </item>
   </channel>
</rss>
</SampleData>
<DataFields>
</DataFields>
</SEARCHWC:QuerySuggestionsWebPart>

</ZoneTemplate></WebPartPages:WebPartZone>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
             </div> 
</ContentTemplate>
</SharePoint:UIVersionedContent>
               <SharePoint:UIVersionedContent UIVersion="3" runat="server">
              <ContentTemplate>                        
	                 </td>
                   </tr>
				  </table>
			  </ContentTemplate>
              </SharePoint:UIVersionedContent>
			  </td>
              </tr>
            </table>
</asp:Content>

<asp:Content ContentPlaceHolderID="SPNavigation" runat="server">
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>

<div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">
<div id="s4-ribboncont">  
                        <SharePoint:SPRibbon 
                            runat="server" 
                            CssFile = "corev4.css"
                            PlaceholderElementId="RibbonContainer"
                            FixedPositioningEnabled="true"
                            PermissionsString="EditListItems, AddAndCustomizePages"
                            PermissionMode="Any"
                            ApplyPermissionsToRibbonOnly="false">
                            <SharePoint:SPRibbonPeripheralContent
                                runat="server"
                                Location="TabRowLeft"
                                CssClass="ms-siteactionscontainer s4-notdlg">  

                       <span class="ms-siteactionsmenu" id="siteactiontd">

                       <SharePoint:SiteActions runat="server" accesskey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain"

                        PrefixHtml=""
                        SuffixHtml=""

                        MenuNotVisibleHtml="&amp;nbsp;"
                        >
                        <CustomTemplate>
                        <SharePoint:FeatureMenuTemplate runat="server"
                            FeatureScope="Site"
                            Location="Microsoft.SharePoint.StandardMenu"
                            GroupId="SiteActions"
                            UseShortId="true"
                            >

                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
                                Text="<%$Resources:wss,siteactions_editpage%>"
                                Description="<%$Resources:wss,siteactions_editpagedescriptionv4%>"
                                ImageUrl="/_layouts/images/ActionsEditPage.png" 
                                MenuGroupId="100"
                                Sequence="110"
                                ClientOnClickNavigateUrl="javascript:ChangeLayoutMode(false);"
                                />
                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_TakeOffline"
                                Text="<%$Resources:wss,siteactions_takeoffline%>"
                                Description="<%$Resources:wss,siteactions_takeofflinedescription%>"
                                ImageUrl="/_layouts/images/connecttospworkspace32.png"
                                MenuGroupId="100"
                                Sequence="120"
                                />

                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreatePage" 
                                Text="<%$Resources:wss,siteactions_createpage%>"
                                Description="<%$Resources:wss,siteactions_createpagedesc%>"
                                ImageUrl="/_layouts/images/NewContentPageHH.png"
                                MenuGroupId="200"
                                Sequence="210"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Page')) { OpenCreateWebPageDialog('~site/_layouts/createwebpage.aspx') }"
                                PermissionsString="AddListItems, EditListItems"
                                PermissionMode="All" />
                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateDocLib" 
                                Text="<%$Resources:wss,siteactions_createdoclib%>"
                                Description="<%$Resources:wss,siteactions_createdoclibdesc%>"
                                ImageUrl="/_layouts/images/NewDocLibHH.png"
                                MenuGroupId="200"
                                Sequence="220"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('DocLib')) { GoToPage('~site/_layouts/new.aspx?FeatureId={00bfea71-e717-4e80-aa17-d0c71b360101}&amp;ListTemplate=101') }"
                                PermissionsString="ManageLists"
                                PermissionMode="Any"
                                VisibilityFeatureId="00BFEA71-E717-4E80-AA17-D0C71B360101" /> 

                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CreateSite" 
                                Text="<%$Resources:wss,siteactions_createsite%>"
                                Description="<%$Resources:wss,siteactions_createsitedesc%>"
                                ImageUrl="/_layouts/images/newweb32.png"
                                MenuGroupId="200"
                                Sequence="230"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('Site')) { STSNavigate('~site/_layouts/newsbweb.aspx') }"
                                PermissionsString="ManageSubwebs,ViewFormPages"
                                PermissionMode="All" />

                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create" 
                                Text="<%$Resources:wss,siteactions_create%>"
                                Description="<%$Resources:wss,siteactions_createdesc%>"
                                MenuGroupId="200"
                                Sequence="240"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="if (LaunchCreateHandler('All')) { STSNavigate('~site/_layouts/create.aspx') }"
                                PermissionsString="ManageLists, ManageSubwebs"
                                PermissionMode="Any" />

                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_ViewAllSiteContents"
                                Text="<%$Resources:wss,quiklnch_allcontent%>"
                                Description="<%$Resources:wss,siteactions_allcontentdescription%>"
                                ImageUrl="/_layouts/images/allcontent32.png"
                                MenuGroupId="300"
                                Sequence="302"
                                UseShortId="true"
                                ClientOnClickNavigateUrl="~site/_layouts/viewlsts.aspx"
                                PermissionsString="ViewFormPages"
                                PermissionMode="Any" />
                             <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditSite"
                                Text="<%$Resources:wss,siteactions_editsite%>"  
                                Description="<%$Resources:wss,siteactions_editsitedescription%>"
                                ImageUrl="/_layouts/images/SharePointDesigner32.png" 
                                MenuGroupId="300"
                                Sequence="304"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="EditInSPD('~site/',true);"
                                PermissionsString="AddAndCustomizePages"
                                PermissionMode="Any"
                            />
                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_SitePermissions" 
                                Text="<%$Resources:wss,people_sitepermissions%>"
                                Description="<%$Resources:wss,siteactions_sitepermissiondescriptionv4%>"
                                ImageUrl="/_layouts/images/Permissions32.png"
                                MenuGroupId="300"
                                Sequence="310"
                                UseShortId="true" 
                                ClientOnClickNavigateUrl="~site/_layouts/user.aspx" 
                                PermissionsString="EnumeratePermissions"
                                PermissionMode="Any" />
                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
                                Text="<%$Resources:wss,settings_pagetitle%>"  
                                Description="<%$Resources:wss,siteactions_sitesettingsdescriptionv4%>"
                                ImageUrl="/_layouts/images/settingsIcon.png" 
                                MenuGroupId="300"
                                Sequence="320"
                                UseShortId="true"
                                ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"

                                PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
                                PermissionMode="Any" />
                            <SharePoint:MenuItemTemplate runat="server" id="MenuItem_CommitNewUI" 
                                Text="<%$Resources:wss,siteactions_commitnewui%>"
                                Description="<%$Resources:wss,siteactions_commitnewuidescription%>"
                                ImageUrl="/_layouts/images/visualupgradehh.png"
                                MenuGroupId="300"
                                Sequence="330"
                                UseShortId="true"
                                ClientOnClickScriptContainingPrefixedUrl="GoToPage('~site/_layouts/prjsetng.aspx')"
                                PermissionsString="ManageWeb"
                                PermissionMode="Any"
                                ShowOnlyIfUIVersionConfigurationEnabled="true" />

                        </SharePoint:FeatureMenuTemplate>
                        </CustomTemplate>

                      </SharePoint:SiteActions></span>

                            </SharePoint:SPRibbonPeripheralContent>

                        </SharePoint:SPRibbon>
</div>
</div>
<SharePoint:SPPageStateControl runat="server" />
<div id="notificationArea" class="s4-noti">
</div>
<div>
                        <WebPartPages:WebPartAdder ID="WebPartAdder" runat="server" />
</div>

</ContentTemplate>
</SharePoint:UIVersionedContent>
</asp:Content>

